From 1764456ec5763847a799181abd8774dd0e6387e4 Mon Sep 17 00:00:00 2001 From: CHEMIN Sebastien Date: Fri, 10 Nov 2023 09:15:10 +0100 Subject: [PATCH] Adding file dialog with directory mode in preferences manager --- src/SUIT/SUIT_PreferenceMgr.cxx | 3 +++ src/SUIT/SUIT_PreferenceMgr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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: -- 2.30.2