diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-28 11:38:07 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-28 20:08:43 +0200 |
commit | dce106c77cc2ecf58ceb38a041698dc35a80183c (patch) | |
tree | 30b698675f905b9d3a7bd265b297096feac80648 /tests/manual/highdpi/main.cpp | |
parent | 891fc4b42be2a56b61d1784898e8d0a9107e5055 (diff) |
High-DPI: Remove usage of Qt::AA_EnableHighDpiScaling
This attribute is now on by default.
Change-Id: I7c9d2e3445d204d3450758673048d514bc9c850c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/highdpi/main.cpp')
-rw-r--r-- | tests/manual/highdpi/main.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/manual/highdpi/main.cpp b/tests/manual/highdpi/main.cpp index f976d1c590..4d70198d29 100644 --- a/tests/manual/highdpi/main.cpp +++ b/tests/manual/highdpi/main.cpp @@ -1458,7 +1458,6 @@ void MetricsTest::logScreenChangeSignal(const QObject *o, const char *name, cons int main(int argc, char **argv) { #define NOSCALINGOPTION "noscaling" -#define SCALINGOPTION "scaling" qInfo("High DPI tester %s", QT_VERSION_STR); @@ -1468,10 +1467,6 @@ int main(int argc, char **argv) QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); preAppOptionCount++; qInfo("AA_DisableHighDpiScaling"); - } else if (qstrcmp(argv[a], "--" SCALINGOPTION) == 0) { - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - preAppOptionCount++; - qInfo("AA_EnableHighDpiScaling"); } } @@ -1489,7 +1484,6 @@ int main(int argc, char **argv) QCommandLineOption controllerOption("interactive", "Show configuration window."); parser.addOption(controllerOption); parser.addOption(QCommandLineOption(NOSCALINGOPTION, "Set AA_DisableHighDpiScaling")); - parser.addOption(QCommandLineOption(SCALINGOPTION, "Set AA_EnableHighDpiScaling")); DemoContainerList demoList; demoList << new DemoContainer<PixmapPainter>("pixmap", "Test pixmap painter"); |