Skip to content

Commit

Permalink
Fix hightlight of selected element with qt6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Feb 20, 2024
1 parent a6e97c1 commit 01669f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/folderstatusdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
cg = QPalette::Inactive;

if (option.state & QStyle::State_Selected) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
painter->setPen(palette.color(cg, QPalette::Accent));
#else
painter->setPen(palette.color(cg, QPalette::HighlightedText));
#endif
} else {
painter->setPen(palette.color(cg, QPalette::Text));
}
Expand Down

0 comments on commit 01669f6

Please sign in to comment.