mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-12-22 11:55:29 +01:00
disable custom theme
This commit is contained in:
parent
1ce6cf9059
commit
f9afa5e0aa
1 changed files with 4 additions and 12 deletions
|
@ -21,18 +21,19 @@
|
|||
#include <QFont>
|
||||
#include <QFile>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef Q_OS_WIN
|
||||
#include "windows.h"
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
QApplication a(argc, argv);
|
||||
#ifdef _WIN32
|
||||
#ifdef Q_OS_WIN
|
||||
QApplication::setStyle(new LuaEngineStyle());
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef Q_OS_WIN
|
||||
#if QT_VERSION >= 0x050400
|
||||
if (QSysInfo::windowsVersion() >= 0x0080)
|
||||
{
|
||||
|
@ -47,15 +48,6 @@ int main(int argc, char *argv[])
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
QFile *luaEngineStyleFile = new QFile(":/luaenginestyle/luaenginestyle.qss");
|
||||
if (luaEngineStyleFile->open(QFile::ReadOnly))
|
||||
{
|
||||
a.setStyleSheet(QString::fromUtf8(luaEngineStyleFile->readAll()));
|
||||
}
|
||||
delete luaEngineStyleFile;
|
||||
#endif
|
||||
|
||||
QFile luaScript(":/lua/edit.lua");
|
||||
|
||||
LuaEngineGui luaEngineGui;
|
||||
|
|
Loading…
Reference in a new issue