summaryrefslogtreecommitdiff
path: root/src/plugins/qmakeprojectmanager/profileeditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-01 23:31:56 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-08-04 10:43:56 +0200
commitd7c2b0b6810adc109201f5f3c1088d3b0f109f70 (patch)
treea08469835335cb33dcc34cce64a995fa550d0b0b /src/plugins/qmakeprojectmanager/profileeditor.cpp
parenta9b70458032ca70bd2dc359da85349d1c28769cc (diff)
downloadqt-creator-d7c2b0b6810adc109201f5f3c1088d3b0f109f70.tar.gz
TextEditor: Consolidate document access functions.
There was document(), textDocument() and baseTextDocument(). Two should be enough... Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/profileeditor.cpp')
-rw-r--r--src/plugins/qmakeprojectmanager/profileeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmakeprojectmanager/profileeditor.cpp b/src/plugins/qmakeprojectmanager/profileeditor.cpp
index d1563d48ac..31b2e4b477 100644
--- a/src/plugins/qmakeprojectmanager/profileeditor.cpp
+++ b/src/plugins/qmakeprojectmanager/profileeditor.cpp
@@ -151,7 +151,7 @@ ProFileEditorWidget::Link ProFileEditorWidget::findLinkAt(const QTextCursor &cur
}
}
- QDir dir(QFileInfo(baseTextDocument()->filePath()).absolutePath());
+ QDir dir(QFileInfo(textDocument()->filePath()).absolutePath());
QString fileName = dir.filePath(buffer);
QFileInfo fi(fileName);
if (fi.exists()) {