summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/basetextmark.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-02-14 16:43:51 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-02-20 13:32:49 +0100
commitd66acb51d0c8b511df9f679806cbd3d84cce41ef (patch)
tree58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/texteditor/basetextmark.cpp
parent266da3568d2db185f67227d38e29cd20d28fb2bd (diff)
downloadqt-creator-d66acb51d0c8b511df9f679806cbd3d84cce41ef.tar.gz
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/basetextmark.cpp')
-rw-r--r--src/plugins/texteditor/basetextmark.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/texteditor/basetextmark.cpp b/src/plugins/texteditor/basetextmark.cpp
index 422649c049..0e3b55d357 100644
--- a/src/plugins/texteditor/basetextmark.cpp
+++ b/src/plugins/texteditor/basetextmark.cpp
@@ -60,7 +60,7 @@ void BaseTextMarkRegistry::add(BaseTextMark *mark)
if (markableInterface->addMark(mark, mark->m_line)) {
mark->m_markableInterface = markableInterface;
// Handle reload of text documents, readding the mark as necessary
- connect(textEditor->file(), SIGNAL(reloaded()),
+ connect(textEditor->document(), SIGNAL(reloaded()),
this, SLOT(documentReloaded()), Qt::UniqueConnection);
break;
}
@@ -79,14 +79,14 @@ void BaseTextMarkRegistry::editorOpened(Core::IEditor *editor)
ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor);
if (!textEditor)
return;
- if (!m_marks.contains(Utils::FileName::fromString(editor->file()->fileName())))
+ if (!m_marks.contains(Utils::FileName::fromString(editor->document()->fileName())))
return;
// Handle reload of text documents, readding the mark as necessary
- connect(textEditor->file(), SIGNAL(reloaded()),
+ connect(textEditor->document(), SIGNAL(reloaded()),
this, SLOT(documentReloaded()), Qt::UniqueConnection);
- foreach (BaseTextMark *mark, m_marks.value(Utils::FileName::fromString(editor->file()->fileName()))) {
+ foreach (BaseTextMark *mark, m_marks.value(Utils::FileName::fromString(editor->document()->fileName()))) {
if (mark->m_markableInterface == 0) { // We aren't added to something
ITextMarkable *markableInterface = textEditor->markableInterface();
if (markableInterface->addMark(mark, mark->m_line))