This method now can be virtual.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-06 14:34:02 +02:00
parent 4f91c69127
commit 25691639d4
2 changed files with 1 additions and 11 deletions

View File

@ -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.

View File

@ -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();