[Development] Two bugs in the QIcon which broke my life.

David Faure faure at kde.org
Wed Aug 8 19:00:29 CEST 2012


On Wednesday 08 August 2012 14:32:36 Mark wrote:
> As for the second bug report
> (https://bugreports.qt-project.org/browse/QTBUG-12874) shouldn't the
> standard icon paths be defined in the new class QStandardPaths? Then
> QIcon can use QStandardPaths to find icons - obviously.
> 
> Right now i don't see any icon related thing in
> http://doc-snapshot.qt-project.org/5.0/qstandardpaths.html Since the
> icon stuff is defined by freedesktop
> (http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.htm
> l#directory_layout) it might as well be added in there.
> 
> Adding David Faure to the cc since he invented QStandardPaths.

QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "icons", 
QStandardPaths::LocateDirectory);

will give you all the base icon paths where to look for icon themes.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5




More information about the Development mailing list