From dce106c77cc2ecf58ceb38a041698dc35a80183c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Fri, 28 Aug 2020 11:38:07 +0200 Subject: High-DPI: Remove usage of Qt::AA_EnableHighDpiScaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This attribute is now on by default. Change-Id: I7c9d2e3445d204d3450758673048d514bc9c850c Reviewed-by: Morten Johan Sørvig Reviewed-by: Tor Arne Vestbø --- examples/widgets/gallery/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/widgets/gallery') 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; -- cgit v1.2.3