From 846cda7eb060a3e812670ff512b634be4245d95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 28 Nov 2022 15:21:51 +0100 Subject: [PATCH] Remove Android High-DPI workarounds in examples These should no longer be needed for Qt 6. Change-Id: Ica7214cbf4fc3ddae960309fe89681ec690d28d0 Reviewed-by: Fabian Kosmale --- examples/widgets/painting/affine/main.cpp | 4 +--- examples/widgets/painting/gradients/main.cpp | 3 --- examples/widgets/painting/pathstroke/main.cpp | 3 --- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/widgets/painting/affine/main.cpp b/examples/widgets/painting/affine/main.cpp index a0ded9bfe3e..3efd2125acd 100644 --- a/examples/widgets/painting/affine/main.cpp +++ b/examples/widgets/painting/affine/main.cpp @@ -8,9 +8,7 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(affine); -#ifdef Q_OS_ANDROID - qputenv("QT_SCALE_FACTOR", "2"); -#endif + QApplication app(argc, argv); XFormWidget xformWidget(nullptr); diff --git a/examples/widgets/painting/gradients/main.cpp b/examples/widgets/painting/gradients/main.cpp index 7e61687f915..f3b75a749ce 100644 --- a/examples/widgets/painting/gradients/main.cpp +++ b/examples/widgets/painting/gradients/main.cpp @@ -8,9 +8,6 @@ int main(int argc, char *argv[]) { Q_INIT_RESOURCE(gradients); -#ifdef Q_OS_ANDROID - qputenv("QT_SCALE_FACTOR", "2"); -#endif QApplication app(argc, argv); diff --git a/examples/widgets/painting/pathstroke/main.cpp b/examples/widgets/painting/pathstroke/main.cpp index d7c64b3c645..a5ceb9e3c6c 100644 --- a/examples/widgets/painting/pathstroke/main.cpp +++ b/examples/widgets/painting/pathstroke/main.cpp @@ -8,9 +8,6 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(pathstroke); -#ifdef Q_OS_ANDROID - qputenv("QT_SCALE_FACTOR", "2"); -#endif QApplication app(argc, argv);