From 43a56ddb326b92ac45bfc823686b132685793203 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 18 Jan 2018 12:39:54 +0300 Subject: [PATCH] Issues #2407 and #2403: Contradiction with application features --- src/ModuleBase/ModuleBase_WidgetNameEdit.cpp | 11 ----------- src/ModuleBase/ModuleBase_WidgetNameEdit.h | 7 ++++--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp b/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp index 9684eb79b..d12f7c9ed 100644 --- a/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp +++ b/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp @@ -24,17 +24,6 @@ #include -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() { diff --git a/src/ModuleBase/ModuleBase_WidgetNameEdit.h b/src/ModuleBase/ModuleBase_WidgetNameEdit.h index 5dda6b77e..44a1a1e52 100644 --- a/src/ModuleBase/ModuleBase_WidgetNameEdit.h +++ b/src/ModuleBase/ModuleBase_WidgetNameEdit.h @@ -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. -- 2.39.2