diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-12-09 16:14:55 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-12-10 09:11:30 +0100 |
commit | 890f72160c61507b4bf85bdf4502d63a32f762d0 (patch) | |
tree | a70665ebbf49f7afe55f35ed43f98a2a87c6ca8d /src/plugins/cpaster/cpasterplugin.cpp | |
parent | 5f2fe51c52e11c67ab66cfad43c02c7e004cfb8c (diff) | |
download | qt-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/cpaster/cpasterplugin.cpp')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index 58020e6153..8878eb2dd2 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -211,7 +211,7 @@ void CodepasterPlugin::postEditor() if (ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor)) { data = textEditor->selectedText(); if (data.isEmpty()) - data = textEditor->textDocument()->contents(); + data = textEditor->textDocument()->plainText(); mimeType = textEditor->document()->mimeType(); } } |