Salome HOME
Disable button of active operation.
[modules/shaper.git] / src / XGUI / XGUI_PropertyPanel.cpp
index 097d9145d8dd7679b6aa59e3b3f6d9eb09a6b26a..f447f24a20aa9cbdf610048ed72e2b2541ce1d45 100755 (executable)
@@ -118,8 +118,6 @@ void XGUI_PropertyPanel::setModelWidgets(const QList<ModuleBase_ModelWidget*>& t
             this,    SLOT(activateNextWidget(ModuleBase_ModelWidget*)));
     connect(aWidget, SIGNAL(keyReleased(QKeyEvent*)),
             this,    SIGNAL(keyReleased(QKeyEvent*)));
-    //connect(aWidget, SIGNAL(focusNextPrev()),
-    //        this, SLOT(onFocusNextPrev()));
   }
 }
 
@@ -170,11 +168,6 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget)
   activateWidget(NULL);
 }
 
-void XGUI_PropertyPanel::onFocusNextPrev()
-{
-  setActiveWidget(NULL);
-}
-
 bool XGUI_PropertyPanel::focusNextPrevChild(bool theIsNext)
 {
   // it wraps the Tabs clicking to follow in the chain:
@@ -246,7 +239,7 @@ void XGUI_PropertyPanel::activateWidget(ModuleBase_ModelWidget* theWidget)
       emit widgetActivated(myActiveWidget);
     } else if (!isEditingMode()) {
       emit noMoreWidgets();
-      setFocusOnOkButton();
+      //setFocusOnOkButton();
     }
   }
 }