forked from qt-creator/qt-creator
Revert "Replace virtual isModified method with a getter/setter/notifier"
This doesn't fix the issue with cleaning the clear state of undo stack. This introduced the issue when ui file is opened it's marked as modified. It reverts59c90e00c1andd0c537ca75Change-Id: Ifd4ff8483d6c297461632de500a4502b1fd0871f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -643,14 +643,6 @@ bool ScxmlDocument::changed() const
|
||||
return !m_undoStack->isClean();
|
||||
}
|
||||
|
||||
void ScxmlDocument::setChanged(bool modified)
|
||||
{
|
||||
if (modified)
|
||||
; // we lack a setDirty method in QUndoStack
|
||||
else
|
||||
m_undoStack->setClean();
|
||||
}
|
||||
|
||||
ScxmlTag *ScxmlDocument::scxmlRootTag() const
|
||||
{
|
||||
ScxmlTag *tag = rootTag();
|
||||
|
||||
@@ -156,7 +156,6 @@ public:
|
||||
* @return - true if changed, false otherwise
|
||||
*/
|
||||
bool changed() const;
|
||||
void setChanged(bool modified);
|
||||
|
||||
/**
|
||||
* @brief rootTag - return rootTag of the document
|
||||
@@ -278,7 +277,6 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user