summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidmanifesteditor.h
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2014-01-10 18:25:59 +0100
committerDaniel Teske <daniel.teske@digia.com>2014-01-15 14:03:09 +0100
commit83c3b6c20a87387c8efba2cbe4ac26013607e1ac (patch)
tree68e31440faed323f57f3eb5719ce19d570b63940 /src/plugins/android/androidmanifesteditor.h
parente485b439bc3a475038d694e3f3cbe1dbec8bd2d2 (diff)
downloadqt-creator-83c3b6c20a87387c8efba2cbe4ac26013607e1ac.tar.gz
Line locator: Also work with editors that are derived from IEditor
IEditor has a concept of line and column number and goto line, thus this can be done. Change-Id: Ic2e3bdcfa2b1debf102afc21bfe9be667a0264c8 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/android/androidmanifesteditor.h')
-rw-r--r--src/plugins/android/androidmanifesteditor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/android/androidmanifesteditor.h b/src/plugins/android/androidmanifesteditor.h
index d7f51e9160..aedd29c57c 100644
--- a/src/plugins/android/androidmanifesteditor.h
+++ b/src/plugins/android/androidmanifesteditor.h
@@ -57,6 +57,10 @@ public:
Core::IDocument *document();
TextEditor::BaseTextEditorWidget *textEditor() const;
+ int currentLine() const;
+ int currentColumn() const;
+ void gotoLine(int line, int column = 0) { textEditor()->gotoLine(line, column); }
+
private slots:
void changeEditorPage(QAction *action);