forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user