[neon/qt/qtquickcontrols2/Neon/unstable] debian: Add one more patch from KDE’s collection.
Dmitry Shachnev
null at kde.org
Mon Apr 29 17:44:21 BST 2024
Git commit eb0cabef5aa712d054da18d5075e9aa0810eef1b by Dmitry Shachnev.
Committed on 04/12/2022 at 15:50.
Pushed by jriddell into branch 'Neon/unstable'.
Add one more patch from KDE’s collection.
Implement a11y pressing of qquickabstractbutton.
M +2 -0 debian/changelog
A +48 -0 debian/patches/0007-implement-a11y-pressing-of-qquickabstractbutton.patch
M +1 -0 debian/patches/series
https://invent.kde.org/neon/qt/qtquickcontrols2/-/commit/eb0cabef5aa712d054da18d5075e9aa0810eef1b
diff --git a/debian/changelog b/debian/changelog
index 804abdb..0be4c37 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ qtquickcontrols2-opensource-src (5.15.7+dfsg-1) UNRELEASED; urgency=medium
[ Dmitry Shachnev ]
* New upstream release.
* Bump Qt build-dependencies to 5.15.7.
+ * Add one more patch from KDE’s collection: implement a11y pressing of
+ qquickabstractbutton.
-- Debian Janitor <janitor at jelmer.uk> Sat, 19 Nov 2022 11:52:54 -0000
diff --git a/debian/patches/0007-implement-a11y-pressing-of-qquickabstractbutton.patch b/debian/patches/0007-implement-a11y-pressing-of-qquickabstractbutton.patch
new file mode 100644
index 0000000..b1a2adc
--- /dev/null
+++ b/debian/patches/0007-implement-a11y-pressing-of-qquickabstractbutton.patch
@@ -0,0 +1,48 @@
+From 5465566a4ad9f6f9758bed304153f0c7fec3437b Mon Sep 17 00:00:00 2001
+From: Harald Sitter <sitter at kde.org>
+Date: Wed, 2 Nov 2022 12:39:11 +0100
+Subject: [PATCH] implement a11y pressing of qquickabstractbutton
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+this adds a pressAction default implementation that simply calls trigger
+(which in turn either triggers the action or emits a click), allowing
+accessibility tools to issue a button press via a11y api.
+
+Change-Id: I75b4fb8680835093b1135fdbf4329aaa85dc3243
+Reviewed-by: Arjen Hiemstra <ahiemstra at heimr.nl>
+Reviewed-by: Aleix Pol Gonzalez <aleixpol at kde.org>
+Reviewed-by: Jan Arve Sæther <jan-arve.saether at qt.io>
+(cherry picked from commit 705659eaaf47af72eeb5f5c742e18a5c665a76eb in
+qtdeclarative)
+---
+ src/quicktemplates2/qquickabstractbutton.cpp | 6 ++++++
+ src/quicktemplates2/qquickabstractbutton_p.h | 1 +
+ 2 files changed, 7 insertions(+)
+
+--- a/src/quicktemplates2/qquickabstractbutton.cpp
++++ b/src/quicktemplates2/qquickabstractbutton.cpp
+@@ -1187,6 +1187,12 @@ QAccessible::Role QQuickAbstractButton::accessibleRole() const
+ }
+ return QAccessible::Button;
+ }
++
++void QQuickAbstractButton::accessiblePressAction()
++{
++ Q_D(QQuickAbstractButton);
++ d->trigger();
++}
+ #endif
+
+ QT_END_NAMESPACE
+--- a/src/quicktemplates2/qquickabstractbutton_p.h
++++ b/src/quicktemplates2/qquickabstractbutton_p.h
+@@ -209,6 +209,7 @@ protected:
+ #if QT_CONFIG(accessibility)
+ void accessibilityActiveChanged(bool active) override;
+ QAccessible::Role accessibleRole() const override;
++ Q_INVOKABLE void accessiblePressAction();
+ #endif
+
+ private:
diff --git a/debian/patches/series b/debian/patches/series
index 30bb77d..ee2c480 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,4 +3,5 @@
0003-QQuickAction-don-t-grab-the-same-shortcut-multiple-t.patch
0004-QQuickAbstractButton-fix-crash-on-destruction.patch
0006-Fix-scroll-bars-not-showing-up-when-binding-to-stand.patch
+0007-implement-a11y-pressing-of-qquickabstractbutton.patch
disable_fontless_examples_build.patch
More information about the Neon-commits
mailing list