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");