Salome HOME
ModuleBase_IconFactory class was created
[modules/shaper.git] / src / ModuleBase / ModuleBase_IconFactory.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_IconFactory.cpp
4 // Created:     28 Jul 2015
5 // Author:      Vitaly SMETANNIKOV
6
7
8 #include "ModuleBase_IconFactory.h"
9
10 ModuleBase_IconFactory* MYIconFactory = 0;
11
12
13 void ModuleBase_IconFactory::setFactory(ModuleBase_IconFactory* theFactory)
14 {
15   if (MYIconFactory)
16     delete MYIconFactory;
17   MYIconFactory = theFactory;
18 }
19
20 ModuleBase_IconFactory* ModuleBase_IconFactory::get()
21 {
22   if (!MYIconFactory) {
23     MYIconFactory = new ModuleBase_IconFactory();
24   }
25   return MYIconFactory;
26 }
27
28 QIcon ModuleBase_IconFactory::getIcon(ObjectPtr theIcon)
29 {
30   return QIcon();
31 }