summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qicon/qicon.pro
diff options
context:
space:
mode:
authorRuslan Nigmatullin <euroelessar@yandex.ru>2014-03-31 03:54:06 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-02-02 23:28:19 +0000
commita40d390a3bbc1919843000b427a168180b83a344 (patch)
tree05121f7154fed3bc8a167460f9cc8aca0687995f /tests/auto/gui/image/qicon/qicon.pro
parenta9066ecf646134009494f68a0365d4549d999c66 (diff)
Fixed icons lookup in QIcon::fromTheme
This commit fixes incorrect logic of icons' lookup if there are fallbacks or more than one theme's directory. According to Icon Theme Specification, Directory Layout section, theme can be spread across several base directories by having subdirectories of the same name. This makes possible to extend system themes by application-specific icons without making of collisions with other applications. According to Icon Naming Specification, Icon Naming Guidelines section, icon name may contain dashes to separate levels of specificity in icon names. This makes possible to set in application very specific icon which may be not in every theme. So it can fallback to less specific one. Change-Id: Iafc813902a3646be56e8f1d3a2fdbf8fd32ac542 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/gui/image/qicon/qicon.pro')
-rw-r--r--tests/auto/gui/image/qicon/qicon.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/image/qicon/qicon.pro b/tests/auto/gui/image/qicon/qicon.pro
index f48fe90dd8..6ff20ec8fa 100644
--- a/tests/auto/gui/image/qicon/qicon.pro
+++ b/tests/auto/gui/image/qicon/qicon.pro
@@ -7,4 +7,4 @@ qtHaveModule(widgets): QT += widgets
SOURCES += tst_qicon.cpp
RESOURCES = tst_qicon.qrc
-TESTDATA += icons/* *.png *.svg *.svgz
+TESTDATA += icons/* second_icons/* *.png *.svg *.svgz