Skip to content

Commit

Permalink
library/previewbuttondelegate: Fix background color of PreviewButtonD…
Browse files Browse the repository at this point in the history
…elegate
  • Loading branch information
Holzhaus committed Mar 8, 2020
1 parent 71d34ad commit a873f7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/library/previewbuttondelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void PreviewButtonDelegate::setModelData(QWidget* editor,
void PreviewButtonDelegate::paintItem(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index) const {
paintItemBackground(painter, option, index);

// Let the editor paint in this case
if (index == m_currentEditedCellIndex) {
return;
Expand Down

0 comments on commit a873f7f

Please sign in to comment.