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 /examples/widgets/gallery/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 'examples/widgets/gallery/main.cpp')
-rw-r--r-- | examples/widgets/gallery/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/widgets/gallery/main.cpp b/examples/widgets/gallery/main.cpp index 688a1d6039..a32c8eb8e1 100644 --- a/examples/widgets/gallery/main.cpp +++ b/examples/widgets/gallery/main.cpp @@ -61,11 +61,8 @@ int main(int argc, char *argv[]) useHighDpiScaling = false; } - if (useHighDpiScaling) { - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - } else { + if (!useHighDpiScaling) QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); - } QApplication app(argc, argv); WidgetGallery gallery; |