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, [email protected], http://www.davidfaure.fr Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
