Salome HOME
Set empty text if double value is set in editor
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetChoice.h
index 3f13cc4afdbfdea772f9190c4835bd14a12515c0..412821d2c475ef3865f089b2bda411f99a93cfb5 100644 (file)
@@ -39,31 +39,24 @@ Q_OBJECT
 
   virtual ~ModuleBase_WidgetChoice();
   
-  virtual bool storeValue() const;
-
   virtual bool restoreValue();
 
   virtual bool focusTo();
 
-  /// Returns the internal parent wiget control, that can be shown anywhere
-  /// \returns the widget
-  QWidget* getControl() const
-  {
-    return myContainer;
-  }
-
   /// Returns list of widget controls
   /// \return a controls list
   virtual QList<QWidget*> getControls() const;
 
+protected:
+  /// Saves the internal parameters to the given feature
+  /// \return True in success
+  virtual bool storeValueCustom() const;
+
 private slots:
   /// Slot called on combo box index change
   void onCurrentIndexChanged(int theIndex);
 
 private:
-  /// Container widget
-  QWidget* myContainer;
-
   /// The label
   QLabel* myLabel;