From 07099736f9cfe28ecadd46d6801e4642cfe7f3c8 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 4 Dec 2014 16:40:02 +0300 Subject: [PATCH] Issue #288: Label can not accept focus --- src/ModuleBase/ModuleBase_WidgetLabel.h | 3 +++ src/XGUI/XGUI_Displayer.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2