summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-12-09 16:14:55 +0100
committerEike Ziller <eike.ziller@digia.com>2013-12-10 09:11:30 +0100
commit890f72160c61507b4bf85bdf4502d63a32f762d0 (patch)
treea70665ebbf49f7afe55f35ed43f98a2a87c6ca8d /src/plugins/qmljstools
parent5f2fe51c52e11c67ab66cfad43c02c7e004cfb8c (diff)
downloadqt-creator-890f72160c61507b4bf85bdf4502d63a32f762d0.tar.gz
Rename QString ITextEditorDocument::contents --> plainText
To differentiate it from the byte array based IDocument::setContents Change-Id: Icc9600732c2742fb79254a0697870bacce3a59ee Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/qmljstools')
-rw-r--r--src/plugins/qmljstools/qmljsmodelmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp
index 2c7469d1f4..36324371c4 100644
--- a/src/plugins/qmljstools/qmljsmodelmanager.cpp
+++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp
@@ -329,7 +329,7 @@ ModelManagerInterface::WorkingCopy ModelManager::workingCopy() const
if (TextEditor::BaseTextDocument *textDocument = qobject_cast<TextEditor::BaseTextDocument *>(document)) {
// TODO the language should be a property on the document, not the editor
if (documentModel->editorsForDocument(document).first()->context().contains(ProjectExplorer::Constants::LANG_QMLJS))
- workingCopy.insert(key, textDocument->contents(), textDocument->document()->revision());
+ workingCopy.insert(key, textDocument->plainText(), textDocument->document()->revision());
}
}