a40d390a3b
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>
11 lines
220 B
Prolog
11 lines
220 B
Prolog
CONFIG += testcase
|
|
CONFIG += parallel_test
|
|
TARGET = tst_qicon
|
|
|
|
QT += testlib
|
|
qtHaveModule(widgets): QT += widgets
|
|
SOURCES += tst_qicon.cpp
|
|
RESOURCES = tst_qicon.qrc
|
|
|
|
TESTDATA += icons/* second_icons/* *.png *.svg *.svgz
|