Dark theme dir renamed

This commit is contained in:
Arin Alex
2017-10-05 02:30:00 +03:00
parent 31f06a2320
commit 5a185c444d
66 changed files with 1519 additions and 2666 deletions

View File

@@ -20,7 +20,8 @@ INCLUDEPATH += $$PWD/../include
DEPENDPATH += $$PWD/../include
RESOURCES += \
demo_r2.qrc
demo_r2.qrc \
../3rdparty/QDarkStyleSheet/qdarkstyle/style.qrc
EXTRA_DIR += $$PWD/demo_reports
DEST_DIR = $${DEST_BINS}

View File

@@ -4,6 +4,18 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFile f(":qdarkstyle/style.qss");
if (!f.exists())
{
printf("Unable to set stylesheet, file not found\n");
}
else
{
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
a.setStyleSheet(ts.readAll());
//a.setStyleSheet("");
}
MainWindow w;
w.show();