]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Adding file dialog with directory mode in preferences manager
authorCHEMIN Sebastien <sc236498@is245491.intra.cea.fr>
Fri, 10 Nov 2023 08:15:10 +0000 (09:15 +0100)
committerCHEMIN Sebastien <sc236498@is245491.intra.cea.fr>
Fri, 10 Nov 2023 08:15:10 +0000 (09:15 +0100)
src/SUIT/SUIT_PreferenceMgr.cxx
src/SUIT/SUIT_PreferenceMgr.h

index 727c034191d326703528d307bd64fa05b9da1af5..a8ee5b3bea75a292176db419ea747696bfb9110d 100644 (file)
@@ -151,6 +151,9 @@ int SUIT_PreferenceMgr::addItem( const QString& title, const int pId,
   case File:
     item = new QtxPagePrefPathItem( Qtx::PT_OpenFile, title, parent, sect, param );
     break;
+  case Directory:
+    item = new QtxPagePrefPathItem( Qtx::PT_Directory, title, parent, sect, param );
+    break;
   case DirList:
     item = new QtxPagePrefPathListItem( Qtx::PT_Directory, title, parent, sect, param );
     break;
index e26a51e73b2c1c5266481de359b21ffcad13243c..d6bcfd9992c56db61868e07a97dcf2e42e6e85ef 100644 (file)
@@ -38,7 +38,7 @@ public:
   typedef enum { Auto, Space, Bool, Color, String, Selector,
                  DblSpin, IntSpin, Double, Integer,
                  GroupBox, Tab, Frame, Font, DirList, File,
-                Slider, Shortcut, ShortcutTree, BiColor, Background,            
+                Slider, Shortcut, ShortcutTree, BiColor, Background, Directory,                 
                  UserDefined = 1000 } PrefItemType;
 
 public: