diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-04-29 15:02:25 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-05-03 07:24:05 +0000 |
commit | c63148fa2129783e267f3d07e101fbdacfff047c (patch) | |
tree | ffe4fef6dc9d7087b93d492681cf03e817c4b687 /src/plugins/cpptools/cppfindreferences.h | |
parent | 248ebb494d6902bb743b162a93429fba28968bf3 (diff) | |
download | qt-creator-c63148fa2129783e267f3d07e101fbdacfff047c.tar.gz |
CppTools: Export some symbol search-related functionality
We want to re-use it elsewhere.
Change-Id: Iefd8464c56ddc8bb2fc5a3349cd833b094c61da7
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.h')
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.h b/src/plugins/cpptools/cppfindreferences.h index 7b2b35b2df..9434a8c587 100644 --- a/src/plugins/cpptools/cppfindreferences.h +++ b/src/plugins/cpptools/cppfindreferences.h @@ -25,6 +25,9 @@ #pragma once +#include "cpptools_global.h" + +#include <coreplugin/find/searchresultwindow.h> #include <cplusplus/FindUsages.h> #include <QObject> @@ -45,6 +48,21 @@ class Node; namespace CppTools { class CppModelManager; +Core::SearchResultColor::Style CPPTOOLS_EXPORT colorStyleForUsageType(CPlusPlus::Usage::Type type); + +class CPPTOOLS_EXPORT CppSearchResultFilter : public Core::SearchResultFilter +{ + QWidget *createWidget() override; + bool matches(const Core::SearchResultItem &item) const override; + + void setValue(bool &member, bool value); + + bool m_showReads = true; + bool m_showWrites = true; + bool m_showDecls = true; + bool m_showOther = true; +}; + namespace Internal { class CppFindReferencesParameters |