class QLabel;
/**
+* \ingroup GUI
* Implementation of model widget for a label control
*/
class MODULEBASE_EXPORT ModuleBase_WidgetLabel : public ModuleBase_ModelWidget
/// It returns false because this is an info widget
virtual bool canSetValue() const { return false; };
- virtual bool storeValue() const
- {
- return true;
- }
-
- virtual bool restoreValue()
+ virtual bool restoreValueCustom()
{
return true;
}
virtual QList<QWidget*> getControls() const;
- QWidget* getControl() const;
-
/// This control doesn't accept focus
virtual bool focusTo() { return false; }
-private:
+protected:
+ /// Saves the internal parameters to the given feature
+ /// \return True in success
+ virtual bool storeValueCustom() const
+ {
+ return true;
+ }
+
/// A label control
QLabel* myLabel;
};
-#endif
\ No newline at end of file
+#endif