projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable Qt's high-DPI scaling introduced in Qt5.6
[quassel.git]
/
src
/
common
/
main.cpp
diff --git
a/src/common/main.cpp
b/src/common/main.cpp
index
a9dafcc
..
01d9d82
100644
(file)
--- a/
src/common/main.cpp
+++ b/
src/common/main.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
5
by the Quassel Project *
+ * Copyright (C) 2005-201
6
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-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