Salome HOME
#1309 Management of icons: loadIcon in icon factory, sketch->parallel icon processing
[modules/shaper.git] / src / ModuleBase / ModuleBase_IconFactory.h
index 1fda9b43b44ef773455b874404ce4be3d6f24cc5..5ea4c4273ac9669ee17f0569c18f6aff19a43cfa 100644 (file)
@@ -25,6 +25,13 @@ public:
   /// \param theObj an object
   virtual QIcon getIcon(ObjectPtr theObj);
 
+  /// Finds an icon for the given object. The icon is loaded: firstly from qrc file,
+  /// then by the icon path. If the path contains ":" , it will be treated as absolute path to
+  /// the icon, or relative path from the plugin library
+  /// \param theValue an icon information
+  /// \return a loaded or empty icon
+  static QIcon loadIcon(const QString& theValue);
+
 protected:
   ModuleBase_IconFactory();