summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-01-23 20:18:00 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-01-24 10:34:39 +0100
commit9aa97b9a2dc85237ce1ccf53a082de26b513f8c3 (patch)
tree3c319947bf447707be1f5317ee39e8e5e7ce386b /dev-qt/qtdeclarative/files
parentdev-qt/qtdbus: drop 5.15.7 (diff)
downloadgentoo-9aa97b9a2dc85237ce1ccf53a082de26b513f8c3.tar.gz
gentoo-9aa97b9a2dc85237ce1ccf53a082de26b513f8c3.tar.bz2
gentoo-9aa97b9a2dc85237ce1ccf53a082de26b513f8c3.zip
dev-qt/qtdeclarative: drop 5.15.7, 5.15.7-r1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-qt/qtdeclarative/files')
-rw-r--r--dev-qt/qtdeclarative/files/qtdeclarative-5.15.7-a11y-track-item-enabled-state.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.15.7-a11y-track-item-enabled-state.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.15.7-a11y-track-item-enabled-state.patch
deleted file mode 100644
index e41838a34e30..000000000000
--- a/dev-qt/qtdeclarative/files/qtdeclarative-5.15.7-a11y-track-item-enabled-state.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From f697f2e1a4c5f60f3f09ae7d2e3d3dcd20854aef Mon Sep 17 00:00:00 2001
-From: Harald Sitter <sitter@kde.org>
-Date: Mon, 28 Nov 2022 14:59:33 +0100
-Subject: [PATCH 1/2] a11y: track item enabled state
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-disabled items are neither enabled nor focusable
-
-Change-Id: I4f286c7b85605d5ad6fa787d1f5cfcce1297d268
-Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
-(cherry picked from commit 20fd2902a6d7bdb4a3306005d2718ca5a8fef96d)
----
- src/quick/accessible/qaccessiblequickitem.cpp | 4 ++++
- src/quick/items/qquickitem.cpp | 9 +++++++++
- 2 files changed, 13 insertions(+)
-
-diff --git a/src/quick/accessible/qaccessiblequickitem.cpp b/src/quick/accessible/qaccessiblequickitem.cpp
-index eb3df4d4cd..78e2ab302c 100644
---- a/src/quick/accessible/qaccessiblequickitem.cpp
-+++ b/src/quick/accessible/qaccessiblequickitem.cpp
-@@ -210,6 +210,10 @@ QAccessible::State QAccessibleQuickItem::state() const
- if (role() == QAccessible::EditableText)
- if (auto ti = qobject_cast<QQuickTextInput *>(item()))
- state.passwordEdit = ti->echoMode() != QQuickTextInput::Normal;
-+ if (!item()->isEnabled()) {
-+ state.focusable = false;
-+ state.disabled = true;
-+ }
- return state;
- }
-
-diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
-index 4cf73ff73d..dec0ae19ae 100644
---- a/src/quick/items/qquickitem.cpp
-+++ b/src/quick/items/qquickitem.cpp
-@@ -6174,6 +6174,15 @@ void QQuickItemPrivate::setEffectiveEnableRecur(QQuickItem *scope, bool newEffec
- }
-
- itemChange(QQuickItem::ItemEnabledHasChanged, effectiveEnable);
-+#if QT_CONFIG(accessibility)
-+ if (isAccessible) {
-+ QAccessible::State changedState;
-+ changedState.disabled = true;
-+ changedState.focusable = true;
-+ QAccessibleStateChangeEvent ev(q, changedState);
-+ QAccessible::updateAccessibility(&ev);
-+ }
-+#endif
- emit q->enabledChanged();
- }
-
---
-2.38.1
-