diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-01 19:24:17 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:19 +0100 |
| commit | c135920b16639136d9fa35598c0af4a7b14416b8 (patch) | |
| tree | 8b9451d808673b0ec23a3c36b2d8ee33079b1238 /src/modlist.cpp | |
| parent | 8a789d303b22a7ac0d0a2b179b2500478eb29a46 (diff) | |
Fix highligth of collapsed separator. Move foreground color fix to delegate.
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index d4b2cc53..41b5c858 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -407,9 +407,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const return QVariant(); } else if (role == Qt::ForegroundRole) { - if ((modInfo->hasFlag(ModInfo::FLAG_SEPARATOR) || (column == COL_NOTES)) && modInfo->color().isValid()) { - return ColorSettings::idealTextColor(modInfo->color()); - } else if (column == COL_NAME) { + if (column == COL_NAME) { int highlight = modInfo->getHighlight(); if (highlight & ModInfo::HIGHLIGHT_IMPORTANT) return QBrush(Qt::darkRed); |
