diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-03-13 08:34:01 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-03-15 18:26:56 +0000 |
commit | 50f3f8f6bb8f5482c713480fad80421760184216 (patch) | |
tree | 9bd6ff3d2d1e740074fdfdde443e63fb2027b0b9 /tests/manual | |
parent | a1808c5dbe2f0e86606de199ab2c965536dc3f53 (diff) | |
download | qtbase-50f3f8f6bb8f5482c713480fad80421760184216.tar.gz |
Use High DPI pixmaps in prominent examples and tests
Set AA_UseHighDpiPixmaps.
Task-number: QTBUG-52622
Change-Id: Ic4373a9c94952f50bc1ad36bcc0dec850efc124a
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/dialogs/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/manual/dialogs/main.cpp b/tests/manual/dialogs/main.cpp index 2676ceeb52..07df8f5cf4 100644 --- a/tests/manual/dialogs/main.cpp +++ b/tests/manual/dialogs/main.cpp @@ -126,6 +126,10 @@ void MainWindow::aboutDialog() int main(int argc, char *argv[]) { +#if QT_VERSION >= 0x050600 + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif + for (int a = 1; a < argc; ++a) { if (!qstrcmp(argv[a], "-n")) { qDebug("AA_DontUseNativeDialogs"); |