diff options
author | hjk <[email protected]> | 2024-05-29 11:45:22 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2024-05-29 13:49:25 +0000 |
commit | efae6519242efca1810af3c40ee52f57e755e703 (patch) | |
tree | c7c9512540cee0bbe7ac4e0c5c7adedbaa0b0f2d /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | d41f15390f5ff53b5d8e86701e881002d5aaf7be (diff) |
Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...)
Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index 4d3a73d4dc2..1d202a64a65 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -201,7 +201,7 @@ QVariant QmlProfilerStatisticsModel::dataForMainEntry(const QModelIndex &index, case TypeIdRole: return s_mainEntryTypeId; case Qt::ForegroundRole: - return Utils::creatorTheme()->color(Utils::Theme::Timeline_TextColor); + return Utils::creatorColor(Utils::Theme::Timeline_TextColor); case SortRole: switch (index.column()) { case MainTimeInPercent: @@ -279,8 +279,8 @@ QVariant QmlProfilerStatisticsModel::data(const QModelIndex &index, int role) co } case Qt::ForegroundRole: return (stats.recursive > 0 || m_notes.contains(typeIndex)) - ? Utils::creatorTheme()->color(Utils::Theme::Timeline_HighlightColor) - : Utils::creatorTheme()->color(Utils::Theme::Timeline_TextColor); + ? Utils::creatorColor(Utils::Theme::Timeline_HighlightColor) + : Utils::creatorColor(Utils::Theme::Timeline_TextColor); case SortRole: switch (index.column()) { case MainLocation: @@ -547,7 +547,7 @@ QVariant QmlProfilerStatisticsRelativesModel::dataForMainEntry(qint64 totalDurat case TypeIdRole: return QmlProfilerStatisticsModel::s_mainEntryTypeId; case Qt::ForegroundRole: - return Utils::creatorTheme()->color(Utils::Theme::Timeline_TextColor); + return Utils::creatorColor(Utils::Theme::Timeline_TextColor); case SortRole: if (column == RelativeTotalTime) return totalDuration; @@ -598,8 +598,8 @@ QVariant QmlProfilerStatisticsRelativesModel::data(const QModelIndex &index, int return stats.isRecursive ? Tr::tr("called recursively") : QString(); case Qt::ForegroundRole: return stats.isRecursive - ? Utils::creatorTheme()->color(Utils::Theme::Timeline_HighlightColor) - : Utils::creatorTheme()->color(Utils::Theme::Timeline_TextColor); + ? Utils::creatorColor(Utils::Theme::Timeline_HighlightColor) + : Utils::creatorColor(Utils::Theme::Timeline_TextColor); case SortRole: switch (index.column()) { case RelativeLocation: |