summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-31 14:01:12 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-08-31 19:14:55 +0200
commit90358f6042d1fe2db849e17e1b0c875fb0560b20 (patch)
tree493e57226970f613c18871d086ae88031b091fde /examples
parent8028474e62c584ed3d5bb0f662b9690ca029f028 (diff)
Deprecate and remove uses of AA_DisableHighDpiScaling
Change-Id: Ibadce68775858c524b998aacad310905ba2c2e8e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/widgets/gallery/main.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/widgets/gallery/main.cpp b/examples/widgets/gallery/main.cpp
index a32c8eb8e1..ba83c764e3 100644
--- a/examples/widgets/gallery/main.cpp
+++ b/examples/widgets/gallery/main.cpp
@@ -54,16 +54,6 @@
int main(int argc, char *argv[])
{
- bool useHighDpiScaling = true;
-
- for (int i = 1; i < argc; ++i) {
- if (qstrcmp(argv[i], "--no-scaling") == 0)
- useHighDpiScaling = false;
- }
-
- if (!useHighDpiScaling)
- QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
-
QApplication app(argc, argv);
WidgetGallery gallery;
gallery.show();