group common stuff
This commit is contained in:
parent
7e8dfc0332
commit
09552fe7c7
@ -1,7 +1,6 @@
|
||||
#include "extenwindow.h"
|
||||
#include "ui_extenwindow.h"
|
||||
#include "defs.h"
|
||||
#include "misc.h"
|
||||
#include <concrt.h>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QDropEvent>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "mainwindow.h"
|
||||
#include "misc.h"
|
||||
#include "host/util.h"
|
||||
#include <QApplication>
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
#include "ui_mainwindow.h"
|
||||
#include "defs.h"
|
||||
#include "extenwindow.h"
|
||||
#include "misc.h"
|
||||
#include "host/util.h"
|
||||
#include <shellapi.h>
|
||||
#include <winhttp.h>
|
||||
|
@ -1,8 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "qtcommon.h"
|
||||
|
||||
struct QTextFile : QFile { QTextFile(QString name, QIODevice::OpenMode mode) : QFile(name) { open(mode | QIODevice::Text); } };
|
||||
inline std::wstring S(const QString& S) { return { S.toStdWString() }; }
|
||||
inline QString S(const std::wstring& S) { return QString::fromStdWString(S); }
|
||||
inline HMODULE LoadLibraryOnce(std::wstring fileName) { if (HMODULE module = GetModuleHandleW(fileName.c_str())) return module; return LoadLibraryW(fileName.c_str()); }
|
@ -11,3 +11,8 @@
|
||||
#include <QDir>
|
||||
#include <QRegularExpression>
|
||||
#include <QSettings>
|
||||
|
||||
struct QTextFile : QFile { QTextFile(QString name, QIODevice::OpenMode mode) : QFile(name) { open(mode | QIODevice::Text); } };
|
||||
inline std::wstring S(const QString& S) { return { S.toStdWString() }; }
|
||||
inline QString S(const std::wstring& S) { return QString::fromStdWString(S); }
|
||||
inline HMODULE LoadLibraryOnce(std::wstring fileName) { if (HMODULE module = GetModuleHandleW(fileName.c_str())) return module; return LoadLibraryW(fileName.c_str()); }
|
||||
|
Loading…
Reference in New Issue
Block a user