From: vsv Date: Thu, 4 Dec 2014 13:40:02 +0000 (+0300) Subject: Issue #288: Label can not accept focus X-Git-Tag: V_0.6.0^2~22^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07099736f9cfe28ecadd46d6801e4642cfe7f3c8;p=modules%2Fshaper.git Issue #288: Label can not accept focus --- diff --git a/src/ModuleBase/ModuleBase_WidgetLabel.h b/src/ModuleBase/ModuleBase_WidgetLabel.h index f7511396b..81c7be592 100644 --- a/src/ModuleBase/ModuleBase_WidgetLabel.h +++ b/src/ModuleBase/ModuleBase_WidgetLabel.h @@ -33,6 +33,9 @@ Q_OBJECT QWidget* getControl() const; + /// This control doesn't accept focus + virtual bool focusTo() { return false; } + private: QLabel* myLabel; }; diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index d4167f5ba..f0227a67b 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -140,7 +140,7 @@ class XGUI_EXPORT XGUI_Displayer void setDisplayMode(ObjectPtr theObject, DisplayMode theMode, bool toUpdate = true); /// Returns current display mode for the given object. - /// If object is not displayed then returns NoMode. + /// If object is not dis played then returns NoMode. DisplayMode displayMode(ObjectPtr theObject) const;