Replace virtual isModified method with a getter/setter/notifier

We have lacked the setter and dedicated notifier before.

Change-Id: I58845a48259d260c5cc90ae94b173c79cddcfef9
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Jarek Kobus
2016-10-07 15:58:40 +02:00
committed by Jarek Kobus
parent caf721430b
commit 59c90e00c1
28 changed files with 113 additions and 136 deletions

View File

@@ -156,6 +156,7 @@ public:
* @return - true if changed, false otherwise
*/
bool changed() const;
void setChanged(bool modified);
/**
* @brief rootTag - return rootTag of the document
@@ -277,6 +278,7 @@ private:
ScxmlTag *createScxmlTag();
QString m_fileName;
QUndoStack *m_undoStack;
int m_cleanIndex;
QVector<ScxmlTag*> m_tags;
QHash<QString, int> m_nextIdHash;
QHash<QString, QString> m_idMap;