- enum Group {
- NoGroup = -1, ///< No group
- Desktop = 0, ///< Desktop icons
- Toolbar, ///< Toolbar icons
- MainToolbar, ///< Main toolbar icons
- Small, ///< Small icons, e.g. for buttons
- Panel, ///< Panel icons
- Dialog, ///< Icons for use in dialog title etc.
- LastGroup
- };
-
- /// Standard icon sizes
- enum StdSizes {
- SizeSmall=16, ///< Small icons for menu entries
- SizeSmallMedium=22, ///< Slightly larger small icons for toolbars, panels, etc
- SizeMedium=32, ///< Medium-sized icons for the desktop
- SizeLarge=48, ///< Large icons for the panel
- SizeHuge=64, ///< Huge icons for iconviews
- SizeEnormous=128 ///< Enormous icons for iconviews
- };
-
- explicit IconLoader(QObject *parent = 0);
- ~IconLoader();
-
- static IconLoader *global();
-
- /// Load a pixmap for the given name and group
- QPixmap loadIcon(const QString& name, IconLoader::Group group, int size = 0);
-
- inline QString theme() const;
- void setTheme(const QString &name);
+ enum Group {
+ NoGroup = -1, ///< No group
+ Desktop = 0, ///< Desktop icons
+ Toolbar, ///< Toolbar icons
+ MainToolbar, ///< Main toolbar icons
+ Small, ///< Small icons, e.g. for buttons
+ Panel, ///< Panel icons
+ Dialog, ///< Icons for use in dialog title etc.
+ LastGroup
+ };
+
+ /// Standard icon sizes
+ enum StdSizes {
+ SizeSmall = 16, ///< Small icons for menu entries
+ SizeSmallMedium = 22, ///< Slightly larger small icons for toolbars, panels, etc
+ SizeMedium = 32, ///< Medium-sized icons for the desktop
+ SizeLarge = 48, ///< Large icons for the panel
+ SizeHuge = 64, ///< Huge icons for iconviews
+ SizeEnormous = 128 ///< Enormous icons for iconviews
+ };
+
+ explicit IconLoader(QObject *parent = 0);
+ ~IconLoader();
+
+ static IconLoader *global();
+
+ /// Load a pixmap for the given name and group
+ QPixmap loadIcon(const QString &name, IconLoader::Group group, int size = 0);
+
+ inline QString theme() const;
+ void setTheme(const QString &name);