summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2016-11-17 17:33:22 +0100
committerMarco Bubke <marco.bubke@qt.io>2016-11-23 10:48:59 +0000
commitddfd29852ab95283571f5bdab7fdc12dd21305ac (patch)
treea16e5e0ef12638c2f9bfe0f6d5f3535dd3f09407 /src/plugins/qmljseditor
parent8a7f21195a34dab67b7e8317b1c7bd6cd77ad733 (diff)
downloadqt-creator-ddfd29852ab95283571f5bdab7fdc12dd21305ac.tar.gz
Utils: First step to extend search results for clang query support
We need multi line support, multi text range support. This is only adding enablers and adds later the multi line and multi text support because this triggers larger changes because you have to know the text document. Change-Id: I44e46d9d80d7d73b2650c69cc83657c20c85bfae Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljsfindreferences.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljsfindreferences.cpp b/src/plugins/qmljseditor/qmljsfindreferences.cpp
index 8927407c87..4ffc21b37f 100644
--- a/src/plugins/qmljseditor/qmljsfindreferences.cpp
+++ b/src/plugins/qmljseditor/qmljsfindreferences.cpp
@@ -1009,7 +1009,8 @@ void FindReferences::openEditor(const SearchResultItem &item)
{
if (item.path.size() > 0) {
EditorManager::openEditorAt(QDir::fromNativeSeparators(item.path.first()),
- item.lineNumber, item.textMarkPos);
+ item.mainRange.begin.line,
+ item.mainRange.begin.column);
} else {
EditorManager::openEditor(QDir::fromNativeSeparators(item.text));
}