summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-10-22 13:39:14 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-10-23 13:07:39 +0200
commit01b88573eb4df718202d26fe3d61b8306a8b14de (patch)
treeee839549a1b6d2bb6e0ad5af8b35a8e7c0749ba2
parent8427a2dbd989daf5f5d6c314f3702c340f784fac (diff)
downloadqtdoc-01b88573eb4df718202d26fe3d61b8306a8b14de.tar.gz
Examples: Don't enable high DPI scaling explicitly
Compiler complains that's deprecated and always on. Change-Id: Ic42db6288cde5c95093715afd5df98368d67bd1f Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--examples/demos/calqlatr/main.cpp3
-rw-r--r--examples/demos/clocks/main.cpp3
-rw-r--r--examples/demos/coffee/main.cpp3
-rw-r--r--examples/demos/maroon/main.cpp3
-rw-r--r--examples/demos/rssnews/main.cpp3
-rw-r--r--examples/demos/samegame/main.cpp3
-rw-r--r--examples/demos/stocqt/main.cpp3
-rw-r--r--examples/demos/tweetsearch/main.cpp3
-rw-r--r--examples/tutorials/alarms/main.cpp4
9 files changed, 9 insertions, 19 deletions
diff --git a/examples/demos/calqlatr/main.cpp b/examples/demos/calqlatr/main.cpp
index 6b5b59c2..b9774a4d 100644
--- a/examples/demos/calqlatr/main.cpp
+++ b/examples/demos/calqlatr/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/clocks/main.cpp b/examples/demos/clocks/main.cpp
index 5889eaba..76bee297 100644
--- a/examples/demos/clocks/main.cpp
+++ b/examples/demos/clocks/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/coffee/main.cpp b/examples/demos/coffee/main.cpp
index 81e0ef32..a3fc76de 100644
--- a/examples/demos/coffee/main.cpp
+++ b/examples/demos/coffee/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -53,7 +53,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
diff --git a/examples/demos/maroon/main.cpp b/examples/demos/maroon/main.cpp
index cfc426c8..5683b135 100644
--- a/examples/demos/maroon/main.cpp
+++ b/examples/demos/maroon/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/rssnews/main.cpp b/examples/demos/rssnews/main.cpp
index 9588c065..ab13c7cf 100644
--- a/examples/demos/rssnews/main.cpp
+++ b/examples/demos/rssnews/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/samegame/main.cpp b/examples/demos/samegame/main.cpp
index 4053c94e..bc10d467 100644
--- a/examples/demos/samegame/main.cpp
+++ b/examples/demos/samegame/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/stocqt/main.cpp b/examples/demos/stocqt/main.cpp
index 7c0da8af..84e8fb8f 100644
--- a/examples/demos/stocqt/main.cpp
+++ b/examples/demos/stocqt/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/demos/tweetsearch/main.cpp b/examples/demos/tweetsearch/main.cpp
index 2e92a07d..1d1cfc64 100644
--- a/examples/demos/tweetsearch/main.cpp
+++ b/examples/demos/tweetsearch/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -55,7 +55,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setOrganizationName("QtExamples");
QGuiApplication app(argc, argv);
diff --git a/examples/tutorials/alarms/main.cpp b/examples/tutorials/alarms/main.cpp
index 3e1bdd84..661c0baa 100644
--- a/examples/tutorials/alarms/main.cpp
+++ b/examples/tutorials/alarms/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -52,8 +52,6 @@
int main(int argc, char *argv[])
{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;