From f5de774d776439516da0a4a3db850a765de731dc Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 12 Mar 2024 11:40:35 +0100 Subject: [PATCH] LanguageClient: improve callhierarchy direction items Do not use the icon of the root function for the artificial "Incoming" and "Outgoing" items in the call hierarchy. In the case of deprecated functions this can be a warning icon. Change-Id: Ib75a66296210d4da24208e98efb527b9af37b793 Reviewed-by: Christian Kandeler --- src/plugins/languageclient/callhierarchy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/languageclient/callhierarchy.cpp b/src/plugins/languageclient/callhierarchy.cpp index dcb47f595ee..b6ead79a7f6 100644 --- a/src/plugins/languageclient/callhierarchy.cpp +++ b/src/plugins/languageclient/callhierarchy.cpp @@ -141,6 +141,8 @@ public: { if (role == Qt::DisplayRole) return m_direction == Incoming ? Tr::tr("Incoming") : Tr::tr("Outgoing"); + if (role == Qt::DecorationRole) + return {}; return CallHierarchyItem::data(column, role); } };