qt5base-lts/tests/auto/gui/image
Alexander Volkov 85aa0fd041 Introduce QIcon::fallbackSearchPaths()
... that will be used if an icon can't be found in the
current theme.

The Icon Theme Specification
https://standards.freedesktop.org/icon-theme-spec/latest/ar01s05.html
states that unthemed icons must be searched in the base directories,
i.e. /usr/share/icons, ... But in practice unthemed icons are
installed into /usr/share/pixmaps and this dir is not used as
a base dir for icon themes. So it's better to explicitly specify
fallback dirs to avoid needless access to the filesystem.

Also some KDE application install their own unthemed icons
(into /usr/share/<appname>/pics), that can't be found by
QIconLoader. With this change it would be possible for them
to specify dirs with unthemed icons and thus be displayed
correctly in non-KDE environments.

[ChangeLog][QtGui][QIcon] Added fallbackSearchPaths() that
will be used to find icons missing in the current icon theme.

Change-Id: I0dc55ba958b29356a3b0a2123d6b8faa24d4c91e
Task-number: QTBUG-33123
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2018-01-15 10:12:22 +00:00
..
qicoimageformat Merge remote-tracking branch 'origin/5.7' into dev 2016-05-23 21:09:46 +02:00
qicon Introduce QIcon::fallbackSearchPaths() 2018-01-15 10:12:22 +00:00
qiconhighdpi qt_findAtNxFile(): account for .9 (9-patch image) extensions 2017-06-24 21:24:53 +00:00
qimage Improve readability of code that uses the Qt signed size type 2017-11-28 18:41:40 +00:00
qimageiohandler Updated license headers 2016-01-21 18:55:18 +00:00
qimagereader tst_QImageReader: Fix the size of the SVG images 2017-08-02 20:25:47 +00:00
qimagewriter Allow QImage with more than 2GByte of image data 2017-07-08 08:17:13 +00:00
qmovie Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
qpicture Updated license headers 2016-01-21 18:55:18 +00:00
qpixmap QRasterPlatformPixmap::createPixmapForImage(): preserve DPR 2017-02-06 16:57:41 +00:00
qpixmapcache Don't call releaseKey a second time if the insertion fails 2017-03-07 08:15:54 +00:00
image.pro Implement support for Scale directory key according to Icon Theme spec 2017-02-01 13:58:01 +00:00