forked from qt-creator/qt-creator
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:
@@ -101,10 +101,10 @@ public:
|
||||
Core::IEditor *editor() const;
|
||||
TextEditor::TextEditorWidget *textEditorWidget() const;
|
||||
|
||||
void setDirty(bool dirty = true);
|
||||
void setModified(bool modified = true);
|
||||
|
||||
signals:
|
||||
void guiChanged();
|
||||
void modificationChanged(bool modified);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
@@ -150,7 +150,7 @@ private:
|
||||
QString parseComment(QXmlStreamReader &reader, QXmlStreamWriter &writer);
|
||||
void parseUnknownElement(QXmlStreamReader &reader, QXmlStreamWriter &writer);
|
||||
|
||||
bool m_dirty; // indicates that we need to call syncToEditor()
|
||||
bool m_modified; // indicates that we need to call syncToEditor()
|
||||
bool m_stayClean;
|
||||
int m_errorLine;
|
||||
int m_errorColumn;
|
||||
|
||||
Reference in New Issue
Block a user