mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-05 05:26:55 +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[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
#ifdef _WIN32
|
||||||
QApplication::setStyle(new LuaEngineStyle());
|
QApplication::setStyle(new LuaEngineStyle());
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#if QT_VERSION >= 0x050400
|
#if QT_VERSION >= 0x050400
|
||||||
|
@ -45,12 +47,14 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
QFile *luaEngineStyleFile = new QFile(":/luaenginestyle/luaenginestyle.qss");
|
QFile *luaEngineStyleFile = new QFile(":/luaenginestyle/luaenginestyle.qss");
|
||||||
if (luaEngineStyleFile->open(QFile::ReadOnly))
|
if (luaEngineStyleFile->open(QFile::ReadOnly))
|
||||||
{
|
{
|
||||||
a.setStyleSheet(QString::fromUtf8(luaEngineStyleFile->readAll()));
|
a.setStyleSheet(QString::fromUtf8(luaEngineStyleFile->readAll()));
|
||||||
}
|
}
|
||||||
delete luaEngineStyleFile;
|
delete luaEngineStyleFile;
|
||||||
|
#endif
|
||||||
|
|
||||||
QFile luaScript(":/lua/edit.lua");
|
QFile luaScript(":/lua/edit.lua");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue