Salome HOME
Issue #720:Set cursor at the same position at editing of text in spin box
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSwitch.h
index 5772a3d0878dd2b03be3bf56c77cc83df163b4c8..aafb6224f0c280599a33eb0d5b6769f6222eed5b 100644 (file)
@@ -31,6 +31,10 @@ class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContain
                           const std::string& theParentId);
   virtual ~ModuleBase_WidgetSwitch();
 
+  /// Defines if it is supported to set the value in this widget
+  /// It returns false because this is an info widget
+  virtual bool canSetValue() const { return false; };
+
   /// Add a page to the widget
   /// \param theWidget a page widget
   /// \param theName a name of page