From a5a631c74815d93aeba864a22e0ac59ad27b443d Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 31 Aug 2018 05:49:15 +0200 Subject: [PATCH] Custom Theme only for Windows --- src/luaengineapp/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/luaengineapp/main.cpp b/src/luaengineapp/main.cpp index cd6df76..8acd3c5 100644 --- a/src/luaengineapp/main.cpp +++ b/src/luaengineapp/main.cpp @@ -28,7 +28,9 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); +#ifdef _WIN32 QApplication::setStyle(new LuaEngineStyle()); +#endif #ifdef _WIN32 #if QT_VERSION >= 0x050400 @@ -45,12 +47,14 @@ 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");