Skip to content

Commit

Permalink
Merge pull request #141 from GermanAizek/fix-draw-dark-style-select-c…
Browse files Browse the repository at this point in the history
…olumns

Fixed selection behavior for select columns in drawPrimitive dark style
  • Loading branch information
soramimi authored Aug 14, 2024
2 parents 43ad794 + 2dbc0d0 commit 955f2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darktheme/DarkStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ void DarkStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *option, Q
QRect r = widget->rect();
if (selection_behavior == QAbstractItemView::SelectionBehavior::SelectRows) {
r = QRect(r.x(), option->rect.y(), r.width(), option->rect.height());
} else if (selection_behavior == QAbstractItemView::SelectionBehavior::SelectRows) {
} else if (selection_behavior == QAbstractItemView::SelectionBehavior::SelectColumns) {
r = QRect(option->rect.x(), r.y(), option->rect.y(), r.height());
}
DrawSelectionFrame(r);
Expand Down

0 comments on commit 955f2fc

Please sign in to comment.