summaryrefslogtreecommitdiff
path: root/src/plugins/analyzerbase
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-07-23 19:10:38 +0200
committerhjk <hjk121@nokiamail.com>2014-07-25 13:45:55 +0200
commitbf5e43be94b24517d6e62acbfd18fdc5a25ede73 (patch)
tree6f977217f47634c08e30aadc20105654b3ae6918 /src/plugins/analyzerbase
parent15421995ab1d4eada18e721a3503c87f58e94db9 (diff)
downloadqt-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/analyzerbase')
-rw-r--r--src/plugins/analyzerbase/analyzerutils.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/analyzerbase/analyzerutils.cpp b/src/plugins/analyzerbase/analyzerutils.cpp
index 125829e844..2aa63e184b 100644
--- a/src/plugins/analyzerbase/analyzerutils.cpp
+++ b/src/plugins/analyzerbase/analyzerutils.cpp
@@ -65,20 +65,16 @@ CPlusPlus::Symbol *AnalyzerUtils::findSymbolUnderCursor()
IEditor *editor = EditorManager::currentEditor();
if (!editor)
return 0;
- TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor *>(editor);
+ TextEditor::BaseTextEditor *textEditor = qobject_cast<TextEditor::BaseTextEditor *>(editor);
if (!textEditor)
return 0;
- TextEditor::BaseTextEditorWidget *editorWidget = qobject_cast<TextEditor::BaseTextEditorWidget *>(editor->widget());
+ TextEditor::BaseTextEditorWidget *editorWidget = textEditor->editorWidget();
if (!editorWidget)
return 0;
- QPlainTextEdit *ptEdit = qobject_cast<QPlainTextEdit *>(editor->widget());
- if (!ptEdit)
- return 0;
-
QTextCursor tc;
- tc = ptEdit->textCursor();
+ tc = editorWidget->textCursor();
int line = 0;
int column = 0;
const int pos = tc.position();