From c63148fa2129783e267f3d07e101fbdacfff047c Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 29 Apr 2021 15:02:25 +0200 Subject: CppTools: Export some symbol search-related functionality We want to re-use it elsewhere. Change-Id: Iefd8464c56ddc8bb2fc5a3349cd833b094c61da7 Reviewed-by: David Schulz --- src/plugins/cpptools/cppfindreferences.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/plugins/cpptools/cppfindreferences.h') 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 #include #include @@ -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 -- cgit v1.2.1