From 1fb8c1e7c9a233ec83ec7d915271f8b65806f1b4 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 13 Nov 2015 08:56:16 +0300 Subject: [PATCH] Activation of the first control in the boolean operations. --- src/ModuleBase/ModuleBase_WidgetChoice.cpp | 2 +- src/ModuleBase/ModuleBase_WidgetChoice.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.cpp b/src/ModuleBase/ModuleBase_WidgetChoice.cpp index 4b09ffab6..3fed3ea5f 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.cpp +++ b/src/ModuleBase/ModuleBase_WidgetChoice.cpp @@ -138,7 +138,7 @@ bool ModuleBase_WidgetChoice::focusTo() if (myCombo) myCombo->setFocus(); else - myButtons->button(0)->setFocus(); + return false; return true; } diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h index 8e25ee1f9..fa643d448 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.h +++ b/src/ModuleBase/ModuleBase_WidgetChoice.h @@ -45,7 +45,11 @@ Q_OBJECT const std::string& theParentId); virtual ~ModuleBase_WidgetChoice(); - + + /// 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; }; + virtual bool focusTo(); /// Returns list of widget controls -- 2.39.2