rbutil: Change style to Fusion on Windows.
The default UI style has some issues with HiDPI support. Use the Qt built-in Fusion instead. This looks somewhat different to the native Windows UI, but works better on HiDPI displays. Change-Id: I25f1b038047a11da7492dfbfa1425874f070ab0b
This commit is contained in:
parent
f3371c1d78
commit
7ae98845f0
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <QCoreApplication>
|
||||
#include <QSettings>
|
||||
#include <QStyleFactory>
|
||||
#include "rbutilqt.h"
|
||||
#include "systrace.h"
|
||||
#include "Logger.h"
|
||||
|
@ -43,6 +44,9 @@ int main( int argc, char ** argv ) {
|
|||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
#endif
|
||||
QApplication app( argc, argv );
|
||||
#ifdef Q_OS_WIN
|
||||
qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||
#endif
|
||||
ConsoleAppender* consoleAppender = new ConsoleAppender();
|
||||
consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");
|
||||
cuteLoggerInstance()->registerAppender(consoleAppender);
|
||||
|
|
Loading…
Reference in a new issue