projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
89175f5
)
Enable Qt's high-DPI scaling introduced in Qt5.6
author
romibi
<romibi@bluewin.ch>
Thu, 14 Jul 2016 09:36:07 +0000
(11:36 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 7 Sep 2016 20:52:53 +0000
(22:52 +0200)
Resolves GH-233.
src/common/main.cpp
patch
|
blob
|
history
diff --git
a/src/common/main.cpp
b/src/common/main.cpp
index
69a95db
..
01d9d82
100644
(file)
--- a/
src/common/main.cpp
+++ b/
src/common/main.cpp
@@
-177,13
+177,19
@@
int main(int argc, char **argv)
}
#endif
}
#endif
-#
if defined BUILD_CORE
+#if defined BUILD_CORE
CoreApplication app(argc, argv);
CoreApplication app(argc, argv);
-# elif defined BUILD_QTUI
+#elif defined BUILD_QTUI
+# if QT_VERSION >= 0x050600
+ QtUiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+# endif
QtUiApplication app(argc, argv);
QtUiApplication app(argc, argv);
-# elif defined BUILD_MONO
+#elif defined BUILD_MONO
+# if QT_VERSION >= 0x050600
+ MonolithicApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+# endif
MonolithicApplication app(argc, argv);
MonolithicApplication app(argc, argv);
-#
endif
+#endif
#ifndef HAVE_KDE4
// the non-KDE version parses after app has been instantiated
#ifndef HAVE_KDE4
// the non-KDE version parses after app has been instantiated