diff options
author | hjk <hjk121@nokiamail.com> | 2014-07-23 19:10:38 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-07-25 13:45:55 +0200 |
commit | bf5e43be94b24517d6e62acbfd18fdc5a25ede73 (patch) | |
tree | 6f977217f47634c08e30aadc20105654b3ae6918 /src/plugins/cpaster | |
parent | 15421995ab1d4eada18e721a3503c87f58e94db9 (diff) | |
download | qt-creator-bf5e43be94b24517d6e62acbfd18fdc5a25ede73.tar.gz |
TextEditor: Merge ITextEditor and BaseTextEditor
Adjust all callers, de-export BaseTextEditorAnimator
Change-Id: I2329d976c1398e2449844bb480a4d4ed29859506
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index 40e487be1f..0baaed7743 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -50,7 +50,7 @@ #include <coreplugin/messagemanager.h> #include <utils/qtcassert.h> #include <utils/fileutils.h> -#include <texteditor/itexteditor.h> +#include <texteditor/basetexteditor.h> #include <QtPlugin> #include <QDebug> @@ -211,10 +211,10 @@ void CodepasterPlugin::postEditor() const IDocument *document = editor->document(); const QString mimeType = document->mimeType(); QString data; - if (const ITextEditor *textEditor = qobject_cast<const ITextEditor *>(editor)) + if (const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor)) data = textEditor->selectedText(); if (data.isEmpty()) { - if (const ITextEditorDocument *textDocument = qobject_cast<const ITextEditorDocument *>(document)) + if (const BaseTextEditorDocument *textDocument = qobject_cast<const BaseTextEditorDocument *>(document)) data = textDocument->plainText(); } post(data, mimeType); |