forked from pool/breeze
Accepting request 998867 from home:Vogtinator:horibreeze
- Add patch to fix progress bars in some application: * 0001-Look-at-QStyleOptionProgressBar-orientation-again.patch OBS-URL: https://build.opensuse.org/request/show/998867 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=379
This commit is contained in:
parent
0255ae7aca
commit
ff84ca9ea0
33
0001-Look-at-QStyleOptionProgressBar-orientation-again.patch
Normal file
33
0001-Look-at-QStyleOptionProgressBar-orientation-again.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 5647eaf512b61b96742dfece1146424978856f69 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
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
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 23 12:33:29 UTC 2022 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
- 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 <fabian@ritter-vogt.de>
|
Tue Aug 2 14:07:08 UTC 2022 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
@ -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
|
Source1: https://download.kde.org/stable/plasma/%{version}/breeze-%{version}.tar.xz.sig
|
||||||
Source2: plasma.keyring
|
Source2: plasma.keyring
|
||||||
%endif
|
%endif
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch1: 0001-Look-at-QStyleOptionProgressBar-orientation-again.patch
|
||||||
BuildRequires: cmake >= 3.16
|
BuildRequires: cmake >= 3.16
|
||||||
BuildRequires: extra-cmake-modules >= 0.0.13
|
BuildRequires: extra-cmake-modules >= 0.0.13
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user