Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.56k stars 113 forks source link

Fix commit highlighting #701

Closed jensenr30 closed 9 months ago

jensenr30 commented 9 months ago

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, and CommitDelegate is now 100% responsible for drawing the commit list.