From 00f2d1a09bf9bb2d6fb9be4bdd12fa8229a11def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Wed, 29 Jul 2020 23:35:47 +0200 Subject: Establish baseline for QIcon test on dpr > 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After enabling Qt::AA_UseHighDpiPixmaps, QIcon::pixmap() now returns pixmaps larger than the requested size on devicePixelRatio > 1 screens. Adapt tests to account for this changed behavior. Skip tests where it’s unclear what the the expected behavior is, or where the test logic does not apply to dpr > 1. This gives a clearer indication of where we are (39 passed, 0 failed, 9 skipped), and enables using the qicon test to catch regressions also when running at dpr > 1. Remove the "lowdpi" testcase flags from the qmake and cmake project files. Change-Id: Ia7ce722ae356fc496a91b54e9f5d590d13b9df62 Reviewed-by: Tor Arne Vestbø --- tests/auto/gui/image/qicon/tst_qicon.qrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/gui/image/qicon/tst_qicon.qrc') diff --git a/tests/auto/gui/image/qicon/tst_qicon.qrc b/tests/auto/gui/image/qicon/tst_qicon.qrc index 4b347ec88c..23a6801e38 100644 --- a/tests/auto/gui/image/qicon/tst_qicon.qrc +++ b/tests/auto/gui/image/qicon/tst_qicon.qrc @@ -21,9 +21,11 @@ ./icons/themeparent/scalable/actions/appointment-new.svg ./styles/commonstyle/images/standardbutton-open-16.png ./styles/commonstyle/images/standardbutton-open-32.png +./styles/commonstyle/images/standardbutton-open-64.png ./styles/commonstyle/images/standardbutton-open-128.png ./styles/commonstyle/images/standardbutton-save-16.png ./styles/commonstyle/images/standardbutton-save-32.png +./styles/commonstyle/images/standardbutton-save-64.png ./styles/commonstyle/images/standardbutton-save-128.png -- cgit v1.2.3