]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issues #2407 and #2403: Contradiction with application features
authorvsv <vsv@opencascade.com>
Thu, 18 Jan 2018 09:39:54 +0000 (12:39 +0300)
committervsv <vsv@opencascade.com>
Thu, 18 Jan 2018 09:39:54 +0000 (12:39 +0300)
src/ModuleBase/ModuleBase_WidgetNameEdit.cpp
src/ModuleBase/ModuleBase_WidgetNameEdit.h

index 9684eb79b60f615134c20408953463740965206d..d12f7c9ed2dea948e6018885c36dff55954358e2 100644 (file)
 
 #include <QLineEdit>
 
-ModuleBase_WidgetNameEdit::ModuleBase_WidgetNameEdit(QWidget* theParent,
-                                                     const Config_WidgetAPI* theData,
-                                                     const std::string& thePlaceHolder )
- : ModuleBase_WidgetLineEdit(theParent, theData, thePlaceHolder)
-{
-  // Disconnect the signal in order to avoid Apply button activation automatically
-  // it will activate apply because of value isApplyEnabledByActiveWidget in
-  // XGUI_ErrorMgr::updateActions
-  disconnect(myLineEdit, SIGNAL(textChanged(const QString&)), this, SIGNAL(valuesModified()));
-}
-
 
 bool ModuleBase_WidgetNameEdit::storeValueCustom()
 {
index 5dda6b77eace088f87a4a9d72c14606ce5990394..44a1a1e529bac5d41810937175a79cadc3b39995 100644 (file)
@@ -28,9 +28,10 @@ class ModuleBase_WidgetNameEdit : public ModuleBase_WidgetLineEdit
 {
   Q_OBJECT
 public:
-  ModuleBase_WidgetNameEdit( QWidget* theParent,
-                             const Config_WidgetAPI* theData,
-                             const std::string& thePlaceHolder );
+  ModuleBase_WidgetNameEdit(QWidget* theParent,
+                            const Config_WidgetAPI* theData,
+                            const std::string& thePlaceHolder)
+      : ModuleBase_WidgetLineEdit(theParent, theData, thePlaceHolder) {}
 
   /// Returns True if the widget uses feature attribute.
   /// If not then it means that the widget do not need attribute at all.