From 25691639d4dfef09f755efdbd0e6dab204428340 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 6 Feb 2015 14:34:02 +0200 Subject: [PATCH] This method now can be virtual. --HG-- branch : feature --- src/app/tools/drawTools/vdrawtool.cpp | 10 ---------- src/app/tools/drawTools/vdrawtool.h | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app/tools/drawTools/vdrawtool.cpp b/src/app/tools/drawTools/vdrawtool.cpp index e993e0b07..765af4cea 100644 --- a/src/app/tools/drawTools/vdrawtool.cpp +++ b/src/app/tools/drawTools/vdrawtool.cpp @@ -74,16 +74,6 @@ void VDrawTool::ShowTool(quint32 id, Qt::GlobalColor color, bool enable) Q_UNUSED(enable); } -//--------------------------------------------------------------------------------------------------------------------- -/** - * @brief ChangedActivDraw disable or enable context menu after change active pattern peace. - * @param newName new name active pattern peace. name new active pattern peace. - */ -void VDrawTool::ChangedActivDraw(const QString &newName) -{ - enabled = nameActivDraw == newName; -} - //--------------------------------------------------------------------------------------------------------------------- /** * @brief ChangedNameDraw save new name active pattern peace. diff --git a/src/app/tools/drawTools/vdrawtool.h b/src/app/tools/drawTools/vdrawtool.h index 52b320b39..40dc27722 100644 --- a/src/app/tools/drawTools/vdrawtool.h +++ b/src/app/tools/drawTools/vdrawtool.h @@ -64,7 +64,7 @@ public: public slots: virtual void ShowTool(quint32 id, Qt::GlobalColor color, bool enable); - virtual void ChangedActivDraw(const QString &newName); + virtual void ChangedActivDraw(const QString &newName) = 0; void ChangedNameDraw(const QString &oldName, const QString &newName); virtual void FullUpdateFromGuiOk(int result); virtual void FullUpdateFromGuiApply();