Skip to content

Commit

Permalink
Fixed selection behavior for select columns in drawPrimitive dark style
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Aug 11, 2024
1 parent 67080a4 commit 2dbc0d0
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 @@ -1272,7 +1272,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 2dbc0d0

Please sign in to comment.