]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
A regression: when double clicking on a dimension for editing the value, the pop...
authornds <nds@opencascade.com>
Mon, 9 Nov 2015 10:39:57 +0000 (13:39 +0300)
committernds <nds@opencascade.com>
Mon, 9 Nov 2015 10:39:57 +0000 (13:39 +0300)
src/ModuleBase/ModuleBase_WidgetEditor.h
src/PartSet/PartSet_SketcherMgr.cpp

index f63ec0bcaf59762fdcd607280933c9c6a8db87dd..5f26a60cc1dae3b96841998102e6933eb81b719e 100644 (file)
@@ -43,7 +43,6 @@ Q_OBJECT
   /// \return the state whether the widget can accept the focus
   virtual bool focusTo();
 
- private slots:
    /// Shous popup window under cursor for data editing
    void showPopupEditor();
 
index 601ca33370086a0415703f9ce82b3efdcae1d98f..ac3eaf7f9449aed7c41b43f2fbed95da31645513 100755 (executable)
@@ -11,6 +11,7 @@
 #include "PartSet_WidgetPoint2dDistance.h"
 #include "PartSet_Tools.h"
 #include "PartSet_WidgetSketchLabel.h"
+#include "PartSet_WidgetEditor.h"
 
 #include <XGUI_ModuleConnector.h>
 #include <XGUI_Displayer.h>
@@ -579,7 +580,9 @@ void PartSet_SketcherMgr::onMouseDoubleClick(ModuleBase_IViewWindow* theWnd, QMo
       // Find corresponded widget to activate value editing
       foreach (ModuleBase_ModelWidget* aWgt, aWidgets) {
         if (aWgt->attributeID() == "ConstraintValue") {
-          aWgt->focusTo();
+          PartSet_WidgetEditor* anEditor = dynamic_cast<PartSet_WidgetEditor*>(aWgt);
+          if (anEditor)
+            anEditor->showPopupEditor();
           return;
         }
       }