summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/icons/mainwindow.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-09-12 12:03:17 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-03-30 08:43:02 +0100
commitc3a4d3608245c5614fcaf95bbe37f2300bbac4cb (patch)
tree2547ab0db15e17971242e6f4c8054b0e00a69f31 /examples/widgets/widgets/icons/mainwindow.cpp
parentb61ea367a5f8d07afda36b49b039b2375142d7f4 (diff)
High-DPI: Remove usages of Qt::AA_UseHighDpiPixmaps
Remove usages of Qt::AA_UseHighDpiPixmaps from examples/. This flag is now on by default, and can't be disabled. Task-number: QTBUG-83092 Change-Id: Ie28622f816da2fe28d4ab272d45ea20bd051d5f3 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/widgets/icons/mainwindow.cpp')
-rw-r--r--examples/widgets/widgets/icons/mainwindow.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/widgets/widgets/icons/mainwindow.cpp b/examples/widgets/widgets/icons/mainwindow.cpp
index aa5ed852fd..bd14bff518 100644
--- a/examples/widgets/widgets/icons/mainwindow.cpp
+++ b/examples/widgets/widgets/icons/mainwindow.cpp
@@ -320,12 +320,6 @@ void MainWindow::loadImages(const QStringList &fileNames)
}
}
-void MainWindow::useHighDpiPixmapsChanged(int checkState)
-{
- QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, checkState == Qt::Checked);
- changeIcon();
-}
-
//! [20]
void MainWindow::removeAllImages()
{
@@ -444,10 +438,6 @@ QWidget *MainWindow::createHighDpiIconSizeGroupBox()
screenNameLabel = new QLabel(highDpiGroupBox);
layout->addRow(tr("Screen:"), screenNameLabel);
layout->addRow(tr("Device pixel ratio:"), devicePixelRatioLabel);
- QCheckBox *highDpiPixmapsCheckBox = new QCheckBox(QLatin1String("Qt::AA_UseHighDpiPixmaps"));
- highDpiPixmapsCheckBox->setChecked(QCoreApplication::testAttribute(Qt::AA_UseHighDpiPixmaps));
- connect(highDpiPixmapsCheckBox, &QCheckBox::stateChanged, this, &MainWindow::useHighDpiPixmapsChanged);
- layout->addRow(highDpiPixmapsCheckBox);
return highDpiGroupBox;
}