diff options
Diffstat (limited to 'src/plugins/coreplugin/find/searchresultcolor.h')
-rw-r--r-- | src/plugins/coreplugin/find/searchresultcolor.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/coreplugin/find/searchresultcolor.h b/src/plugins/coreplugin/find/searchresultcolor.h index ec1b4c1bd4..9a68f1c35a 100644 --- a/src/plugins/coreplugin/find/searchresultcolor.h +++ b/src/plugins/coreplugin/find/searchresultcolor.h @@ -32,7 +32,8 @@ namespace Core { -class CORE_EXPORT SearchResultColor { +class CORE_EXPORT SearchResultColor +{ public: enum class Style { Default, Alt1, Alt2 }; @@ -48,18 +49,17 @@ public: highlightForeground = textForeground; } + friend auto qHash(SearchResultColor::Style style) + { + return QT_PREPEND_NAMESPACE(qHash(int(style))); + } + QColor textBackground; QColor textForeground; QColor highlightBackground; QColor highlightForeground; }; - -inline auto qHash(SearchResultColor::Style style) -{ - return QT_PREPEND_NAMESPACE(qHash(int(style))); -} - using SearchResultColors = QHash<SearchResultColor::Style, SearchResultColor>; } // namespace Core |