summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/basetextmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/basetextmark.h')
-rw-r--r--src/plugins/texteditor/basetextmark.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/texteditor/basetextmark.h b/src/plugins/texteditor/basetextmark.h
index 8426abcf9e..1b31724f2f 100644
--- a/src/plugins/texteditor/basetextmark.h
+++ b/src/plugins/texteditor/basetextmark.h
@@ -40,6 +40,7 @@
#include <QWeakPointer>
#include <QHash>
+#include <QSet>
QT_BEGIN_NAMESPACE
class QTextBlock;
@@ -61,14 +62,13 @@ public:
BaseTextMark(const QString &fileName, int lineNumber);
virtual ~BaseTextMark();
- // call this if the icon has changed.
- void updateMarker();
+ /// called if the filename of the document changed
+ virtual void updateFileName(const QString &fileName);
// access to internal data
QString fileName() const { return m_fileName; }
private:
- QWeakPointer<ITextMarkable> m_markableInterface;
QString m_fileName;
};
@@ -83,9 +83,10 @@ public:
void remove(BaseTextMark *mark);
private slots:
void editorOpened(Core::IEditor *editor);
- void documentReloaded();
+ void documentRenamed(Core::IDocument *document, const QString &oldName, const QString &newName);
+ void allDocumentsRenamed(const QString &oldName, const QString &newName);
private:
- QHash<Utils::FileName, QList<BaseTextMark *> > m_marks;
+ QHash<Utils::FileName, QSet<BaseTextMark *> > m_marks;
};
}