Salome HOME
bos #29458 Salome on demand
[modules/gui.git] / src / SUIT / SUIT_PreferenceMgr.cxx
index b19b0797d409a75329ce0095ec88ae5ed374261b..4b2c482a640074a023ff5facc0cbce7a7bfe2dd3 100644 (file)
@@ -174,6 +174,18 @@ int SUIT_PreferenceMgr::addItem( const QString& title, const int pId,
   return item ? item->id() : -1;
 }
 
+void SUIT_PreferenceMgr::removeItem( const QString& title )
+{
+  if ( myRoot )
+  {
+    QtxPreferenceItem* item = myRoot->findItem( title, false );
+    if ( item ) {
+      QtxPagePrefMgr::removeItem( item );
+      delete item;
+    }
+  }
+}
+
 QVariant SUIT_PreferenceMgr::optionValue( const QString& name ) const
 {
   QVariant val = QtxPagePrefMgr::optionValue( name );