disable custom theme

This commit is contained in:
Syping 2019-09-20 00:43:20 +02:00
parent 1ce6cf9059
commit f9afa5e0aa

View file

@ -21,18 +21,19 @@
#include <QFont> #include <QFont>
#include <QFile> #include <QFile>
#ifdef _WIN32 #ifdef Q_OS_WIN
#include "windows.h" #include "windows.h"
#endif #endif
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
QApplication a(argc, argv); QApplication a(argc, argv);
#ifdef _WIN32 #ifdef Q_OS_WIN
QApplication::setStyle(new LuaEngineStyle()); QApplication::setStyle(new LuaEngineStyle());
#endif #endif
#ifdef _WIN32 #ifdef Q_OS_WIN
#if QT_VERSION >= 0x050400 #if QT_VERSION >= 0x050400
if (QSysInfo::windowsVersion() >= 0x0080) if (QSysInfo::windowsVersion() >= 0x0080)
{ {
@ -47,15 +48,6 @@ int main(int argc, char *argv[])
#endif #endif
#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"); QFile luaScript(":/lua/edit.lua");
LuaEngineGui luaEngineGui; LuaEngineGui luaEngineGui;