diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-07-15 14:36:59 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-15 13:44:06 +0000 |
commit | 8ca322d5950858ac8f937a5524cda24f30688f50 (patch) | |
tree | 978c800236a4d20df7c6ba3e55236a6928213e25 /tests | |
parent | 34ebafc23a9ab7b8e7959a92bb0fe8e861b4fb8d (diff) |
Remove High DPI scaling attributes
They no longer have any effect and cause warnings and errors.
Change-Id: Ibeb25186d92a0755a06193f34892ac0d64314e2e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 7040246efcaddbbda534acc841bcd7ec6b1bdfb4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/axviewer/main.cpp | 5 | ||||
-rw-r--r-- | tests/manual/dumpcpp/main.cpp | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/tests/manual/axviewer/main.cpp b/tests/manual/axviewer/main.cpp index 29ad3dc..8d5b83d 100644 --- a/tests/manual/axviewer/main.cpp +++ b/tests/manual/axviewer/main.cpp @@ -148,8 +148,6 @@ void MainWindow::showMetaObject() int main(int argc, char* argv[]) { - if (isOptionSet(argc, argv, "-s")) - QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); if (!isOptionSet(argc, argv, "-n")) QCoreApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); @@ -161,9 +159,6 @@ int main(int argc, char* argv[]) parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions); parser.addHelpOption(); parser.addVersionOption(); - QCommandLineOption noScalingDummy(QStringLiteral("s"), - QStringLiteral("Set Qt::AA_DisableHighDpiScaling.")); - parser.addOption(noScalingDummy); QCommandLineOption nativeSiblingsDummy(QStringLiteral("n"), QStringLiteral("Do not set Qt::AA_DontCreateNativeWidgetSiblings.")); parser.addOption(nativeSiblingsDummy); diff --git a/tests/manual/dumpcpp/main.cpp b/tests/manual/dumpcpp/main.cpp index 2f3cef8..8259a66 100644 --- a/tests/manual/dumpcpp/main.cpp +++ b/tests/manual/dumpcpp/main.cpp @@ -96,9 +96,6 @@ void MainWindow::showMetaObject() int main(int argc, char *argv[]) { - QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QApplication a(argc, argv); MainWindow w; |