From 2dbc0d0cd0289c8301899f5ede29be88fe6a4805 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Sun, 11 Aug 2024 06:12:39 +0300 Subject: [PATCH] Fixed selection behavior for select columns in drawPrimitive dark style --- src/darktheme/DarkStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darktheme/DarkStyle.cpp b/src/darktheme/DarkStyle.cpp index 97af6b89..7c3baa66 100644 --- a/src/darktheme/DarkStyle.cpp +++ b/src/darktheme/DarkStyle.cpp @@ -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);