aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2017-09-21 12:35:24 +0200
committerIvan Donchevskii <ivan.donchevskii@qt.io>2017-09-22 12:59:35 +0000
commit80a472740d62f0e0b1ffc177c75641691e99e213 (patch)
tree370c5bca8ebcb64b85845751b8dd9dc97de0655f /src/plugins/cpptools/cppcompletion_test.cpp
parenta959fe59da71289cb52b6c006d8ec7bc70362ad8 (diff)
TextEditor: move convenience from texteditor to utils
Allows to use this header without texteditor dependency. Change-Id: I706f42799c3ea42473a716fa9ef9f3cfbef6fdd4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index b494476351..147ae4e455 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -30,12 +30,12 @@
#include "cpptoolstestcase.h"
#include <texteditor/codeassist/iassistproposal.h>
-#include <texteditor/convenience.h>
#include <texteditor/texteditor.h>
#include <texteditor/textdocument.h>
#include <coreplugin/editormanager/editormanager.h>
#include <utils/changeset.h>
+#include <utils/textutils.h>
#include <utils/fileutils.h>
#include <QDebug>
@@ -127,8 +127,7 @@ public:
const int pos = proposal.d->basePosition();
const int length = m_position - pos;
- const QString prefix = Convenience::textAt(QTextCursor(m_textDocument), pos,
- length);
+ const QString prefix = Utils::Text::textAt(QTextCursor(m_textDocument), pos, length);
if (!prefix.isEmpty())
listmodel->filter(prefix);
if (listmodel->isSortable(prefix))