I tried for hours, but couldn't figure out how to prevent Qt from highlighting extra things unnecessarily. So I decided to highlight selected commits using painter->fillRect. Usually I don't like to re-implement basic library features, but since the rendering of CommitList is already 95% hand-rolled, this solution seems acceptable.
QStyledItemDelegate::paint(painter, opt, index); has been removed, and CommitDelegate is now 100% responsible for drawing the commit list.
This fixes #699.
I tried for hours, but couldn't figure out how to prevent Qt from highlighting extra things unnecessarily. So I decided to highlight selected commits using
painter->fillRect
. Usually I don't like to re-implement basic library features, but since the rendering of CommitList is already 95% hand-rolled, this solution seems acceptable.QStyledItemDelegate::paint(painter, opt, index);
has been removed, andCommitDelegate
is now 100% responsible for drawing the commit list.