diff --git a/0001-Look-at-QStyleOptionProgressBar-orientation-again.patch b/0001-Look-at-QStyleOptionProgressBar-orientation-again.patch new file mode 100644 index 0000000..9694726 --- /dev/null +++ b/0001-Look-at-QStyleOptionProgressBar-orientation-again.patch @@ -0,0 +1,33 @@ +From 5647eaf512b61b96742dfece1146424978856f69 Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Tue, 23 Aug 2022 14:31:53 +0200 +Subject: [PATCH] Look at QStyleOptionProgressBar::orientation again + +Some applications (KGet, DigiKam) use that and not QStyle::State_Horizontal. +For compatibility, keep looking at it as long as it's available. + + +(cherry picked from commit 5596fd9f2e014e59f3764023d6b1099ce1316028) +--- + kstyle/breezestyle.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp +index 600d0164..57c502e5 100644 +--- a/kstyle/breezestyle.cpp ++++ b/kstyle/breezestyle.cpp +@@ -162,7 +162,11 @@ private: + //_______________________________________________________________ + bool isProgressBarHorizontal(const QStyleOptionProgressBar *option) + { ++#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + return option && (option->state & QStyle::State_Horizontal); ++#else ++ return option && ((option->state & QStyle::State_Horizontal) || option->orientation == Qt::Horizontal); ++#endif + } + + enum class ToolButtonMenuArrowStyle { +-- +2.37.2 + diff --git a/breeze.changes b/breeze.changes index 8cdaa59..f6c09bd 100644 --- a/breeze.changes +++ b/breeze.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 23 12:33:29 UTC 2022 - Fabian Vogt + +- Add patch to fix progress bars in some application: + * 0001-Look-at-QStyleOptionProgressBar-orientation-again.patch + ------------------------------------------------------------------- Tue Aug 2 14:07:08 UTC 2022 - Fabian Vogt diff --git a/breeze.spec b/breeze.spec index d5e2aa6..1d2381b 100644 --- a/breeze.spec +++ b/breeze.spec @@ -33,6 +33,8 @@ Source: https://download.kde.org/stable/plasma/%{version}/breeze-%{versi Source1: https://download.kde.org/stable/plasma/%{version}/breeze-%{version}.tar.xz.sig Source2: plasma.keyring %endif +# PATCH-FIX-UPSTREAM +Patch1: 0001-Look-at-QStyleOptionProgressBar-orientation-again.patch BuildRequires: cmake >= 3.16 BuildRequires: extra-cmake-modules >= 0.0.13 BuildRequires: fdupes