mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-04 21:16:56 +01:00
Custom Theme only for Windows
This commit is contained in:
parent
3aa716a1c1
commit
a5a631c748
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue