Set default style on Windows to "Fusion".

This commit is contained in:
Martin Brodbeck 2020-10-15 15:47:05 +02:00
parent 305d41f2e1
commit 8b299bacc3

View file

@ -8,6 +8,7 @@
#include <QSettings>
#include <QSharedMemory>
#include <QTranslator>
#include <QStyleFactory>
#include <singleapplication.h>
@ -25,6 +26,7 @@ int main(int argc, char* argv[])
qTranslator.load("qt_" + german.name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
#endif
#ifdef _WIN32
QApplication::setStyle(QStyleFactory::create("Fusion"));
qTranslator.load("qt_" + german.name(),
QApplication::applicationDirPath() + QDir::separator() + "translations");
#endif