From 387fc781a2002ccba1fed6be69ba4315d1d1e793 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Thu, 22 Oct 2026 09:58:45 -0400 Subject: [PATCH] Fix horizontal progress bars after Qt6 migration * Fixes #13825 --- src/gui/styles/base/BaseStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/styles/base/BaseStyle.cpp b/src/gui/styles/base/BaseStyle.cpp index 9b41f4cca..272855aa2 100644 --- a/src/gui/styles/base/BaseStyle.cpp +++ b/src/gui/styles/base/BaseStyle.cpp @@ -863,7 +863,7 @@ namespace Phantom { QRect ra = bar->rect; QRect rb = ra; - bool isHorizontal = bar->state == QStyle::State_Horizontal; + bool isHorizontal = bar->state & QStyle::State_Horizontal; bool isInverted = bar->invertedAppearance; bool isIndeterminate = bar->minimum == 0 && bar->maximum == 0; bool isForward = !isHorizontal || bar->direction != Qt::RightToLeft;