forked from pool/breeze
- Add patch to automatically set a default button again (kde#438994):
* 0001-Restore-auto-default-button-behavior.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=346
This commit is contained in:
parent
06213915e1
commit
14a4a39710
35
0001-Restore-auto-default-button-behavior.patch
Normal file
35
0001-Restore-auto-default-button-behavior.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From f763f27ebf3bbb21235ab3df0f7b9ef035cc71b5 Mon Sep 17 00:00:00 2001
|
||||
From: Kai Uwe Broulik <kde@privat.broulik.de>
|
||||
Date: Wed, 8 Sep 2021 12:50:10 +0200
|
||||
Subject: [PATCH] Restore auto default button behavior
|
||||
|
||||
A style shouldn't mess with clients like this, especially
|
||||
if it behaves different from literally any other QStyle out
|
||||
there, and breaks decades of muscle memory.
|
||||
|
||||
This partially reverts 00693ee5e715167d61d0014b9eb75ab3dbd31b51
|
||||
|
||||
BUG: 438994
|
||||
|
||||
|
||||
(cherry picked from commit c5171cf003aa8dd0028a14e5bba99002941b729e)
|
||||
---
|
||||
kstyle/breezestyle.cpp | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp
|
||||
index a5f68e88..a98b1e62 100644
|
||||
--- a/kstyle/breezestyle.cpp
|
||||
+++ b/kstyle/breezestyle.cpp
|
||||
@@ -413,8 +413,6 @@ namespace Breeze
|
||||
}
|
||||
else if ( qobject_cast<QDialog*> (widget) ) {
|
||||
widget->setAttribute(Qt::WA_StyledBackground);
|
||||
- } else if ( auto btn = qobject_cast<QPushButton*> (widget) ) {
|
||||
- btn->setAutoDefault(false);
|
||||
} else if ( auto spbx = qobject_cast<QAbstractSpinBox*> (widget) ) {
|
||||
spbx->setAlignment(Qt::AlignCenter);
|
||||
}
|
||||
--
|
||||
2.33.0
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 26 12:12:47 UTC 2021 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Add patch to automatically set a default button again (kde#438994):
|
||||
* 0001-Restore-auto-default-button-behavior.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 16 13:04:44 UTC 2021 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
|
@ -33,6 +33,8 @@ Source: https://download.kde.org/unstable/plasma/%{version}/breeze-%{ver
|
||||
Source1: https://download.kde.org/unstable/plasma/%{version}/breeze-%{version}.tar.xz.sig
|
||||
Source2: plasma.keyring
|
||||
%endif
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: 0001-Restore-auto-default-button-behavior.patch
|
||||
BuildRequires: cmake >= 3.16
|
||||
BuildRequires: extra-cmake-modules >= 0.0.13
|
||||
BuildRequires: fdupes
|
||||
|
Loading…
Reference in New Issue
Block a user