X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchLabel.cpp;h=96435f627a95826200c5ed20017793ba04989e46;hb=0b503091623876eda1ae9214e32f8831ef03778b;hp=1a20133b41d30f23f6d306a6def256f63a7057ca;hpb=93c7fa6135463fb0a202cf94f30da60316795a04;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 1a20133b4..96435f627 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -74,7 +74,9 @@ PartSet_WidgetSketchLabel::~PartSet_WidgetSketchLabel() QList PartSet_WidgetSketchLabel::getControls() const { - return QList(); + QList aResult; + aResult << myLabel; + return aResult; } void PartSet_WidgetSketchLabel::onPlaneSelected() @@ -134,6 +136,17 @@ std::shared_ptr PartSet_WidgetSketchLabel::plane() const } +bool PartSet_WidgetSketchLabel::focusTo() +{ + myLabel->setFocus(); + return true; +} + +void PartSet_WidgetSketchLabel::enableFocusProcessing() +{ + myLabel->installEventFilter(this); +} + void PartSet_WidgetSketchLabel::activateCustom() { std::shared_ptr aPlane = plane();