mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Enable HiDpi scaling with Qt 5.6
This commit is contained in:
parent
5487fc1f9c
commit
16030a61eb
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ Application::Application(int &argc, char **argv) :
|
|||
setWindowIcon( _theme->applicationIcon() );
|
||||
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
||||
setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||
#endif
|
||||
#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0)
|
||||
// this may slightly break some styles until they
|
||||
// get fixed, but will make dialogs readable.
|
||||
setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
#endif
|
||||
parseOptions(arguments());
|
||||
//no need to waste time;
|
||||
|
|
Loading…
Reference in a new issue