diff --git a/delegate.cpp b/delegate.cpp index 36d211aa7..037e13587 100644 --- a/delegate.cpp +++ b/delegate.cpp @@ -190,7 +190,7 @@ QRect Delegate::emptyRect(const QStyleOptionViewItem& option, const QModelIndex& void Delegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { - const bool hover = option.state & (QStyle::State_Selected|QStyle::State_MouseOver|QStyle::State_HasFocus); + const bool hover = option.state & (QStyle::State_MouseOver | QStyle::State_Selected); QRect contentRect = option.rect; contentRect.setBottom(contentRect.bottom() - 1);