From 6a2944f62798388716d00524d42a818a98655190 Mon Sep 17 00:00:00 2001 From: CHEMIN Sebastien Date: Mon, 20 Nov 2023 09:40:50 +0100 Subject: [PATCH] Add Directory Dialog --- 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 727c03419..a8ee5b3be 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 e26a51e73..d6bcfd999 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.39.2