From: CHEMIN Sebastien Date: Fri, 10 Nov 2023 08:15:10 +0000 (+0100) Subject: Adding file dialog with directory mode in preferences manager X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fsc%2Ffix_glview_zooms;p=modules%2Fgui.git Adding file dialog with directory mode in preferences manager --- diff --git a/src/SUIT/SUIT_PreferenceMgr.cxx b/src/SUIT/SUIT_PreferenceMgr.cxx index 08c0208ee..0fd2e20e1 100644 --- a/src/SUIT/SUIT_PreferenceMgr.cxx +++ b/src/SUIT/SUIT_PreferenceMgr.cxx @@ -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; diff --git a/src/SUIT/SUIT_PreferenceMgr.h b/src/SUIT/SUIT_PreferenceMgr.h index e68d29bec..b47922521 100644 --- a/src/SUIT/SUIT_PreferenceMgr.h +++ b/src/SUIT/SUIT_PreferenceMgr.h @@ -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: