diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-02-11 16:22:48 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-02-18 16:46:08 +0000 |
commit | d3deefc3a4306e5b8882c7388f2ef1684dc0d922 (patch) | |
tree | 1866a3a84ee3cb35c3f25b25f00f6683577fd9cb /src/plugins/cpptools/builtinindexingsupport.cpp | |
parent | fa5fdef6e1dcf22ec8896f9330068760091b044d (diff) | |
download | qt-creator-d3deefc3a4306e5b8882c7388f2ef1684dc0d922.tar.gz |
Core: Streamline SearchResultWindow interface
That is, make SearchResultItem the one data type for adding search
results.
This will allow us to add additional properties to search results
without adding more and more parameters to a bunch of functions.
Change-Id: Ic2740477ae47449cee75caa2525727fe2b460f91
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpptools/builtinindexingsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/builtinindexingsupport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpptools/builtinindexingsupport.cpp b/src/plugins/cpptools/builtinindexingsupport.cpp index a3e95da947..ebdd35509f 100644 --- a/src/plugins/cpptools/builtinindexingsupport.cpp +++ b/src/plugins/cpptools/builtinindexingsupport.cpp @@ -308,10 +308,10 @@ public: } Core::SearchResultItem item; - item.path = scope.split(QLatin1String("::"), Qt::SkipEmptyParts); - item.text = text; - item.icon = info->icon(); - item.userData = QVariant::fromValue(info); + item.setPath(scope.split(QLatin1String("::"), Qt::SkipEmptyParts)); + item.setLineText(text); + item.setIcon(info->icon()); + item.setUserData(QVariant::fromValue(info)); resultItems << item; } |