From 7259170670495345587117922735439997869754 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 16 Nov 2023 14:39:17 -0500 Subject: Special color for exported symbols Imports have their own color, so exports can too --- examples/triage/exports.cpp | 2 ++ examples/triage/imports.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/triage/exports.cpp b/examples/triage/exports.cpp index 92560527..808d1f01 100644 --- a/examples/triage/exports.cpp +++ b/examples/triage/exports.cpp @@ -100,6 +100,8 @@ QVariant GenericExportsModel::data(const QModelIndex& index, int role) const case Qt::ForegroundRole: if (index.column() == AddressColumn) return getThemeColor(AddressColor); + if (index.column() == NameColumn) + return getThemeColor(ExportColor); break; default: break; diff --git a/examples/triage/imports.cpp b/examples/triage/imports.cpp index 26e608b2..2009dccf 100644 --- a/examples/triage/imports.cpp +++ b/examples/triage/imports.cpp @@ -71,6 +71,8 @@ QVariant GenericImportsModel::data(const QModelIndex& index, int role) const case Qt::ForegroundRole: if (index.column() == 0) return getThemeColor(AddressColor); + if (index.column() == m_nameCol) + return getThemeColor(ImportColor); break; default: break; -- cgit v1.3.1