Changeset View
Changeset View
Standalone View
Standalone View
recipes-kf5/tier3/ktexteditor/0001-no-accessibility.patch
- This file was added.
1 | diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp | ||||
---|---|---|---|---|---|
2 | index 55f994ec..b664d5f1 100644 | ||||
3 | --- a/src/view/kateviewinternal.cpp | ||||
4 | +++ b/src/view/kateviewinternal.cpp | ||||
5 | @@ -3756,18 +3756,22 @@ void KateViewInternal::flashChar(const KTextEditor::Cursor &pos, KTextEditor::At | ||||
6 | | ||||
7 | void KateViewInternal::documentTextInserted(KTextEditor::Document *document, const KTextEditor::Range &range) | ||||
8 | { | ||||
9 | +#ifndef QT_NO_ACCESSIBILITY | ||||
10 | if (QAccessible::isActive()) { | ||||
11 | QAccessibleTextInsertEvent ev(this, | ||||
12 | KateViewAccessible::positionFromCursor(this, range.start()), document->text(range)); | ||||
13 | QAccessible::updateAccessibility(&ev); | ||||
14 | } | ||||
15 | +#endif | ||||
16 | } | ||||
17 | | ||||
18 | void KateViewInternal::documentTextRemoved(KTextEditor::Document * /*document*/, const KTextEditor::Range &range, const QString &oldText) | ||||
19 | { | ||||
20 | +#ifndef QT_NO_ACCESSIBILITY | ||||
21 | if (QAccessible::isActive()) { | ||||
22 | QAccessibleTextRemoveEvent ev(this, | ||||
23 | KateViewAccessible::positionFromCursor(this, range.start()), oldText); | ||||
24 | QAccessible::updateAccessibility(&ev); | ||||
25 | } | ||||
26 | +#endif | ||||
27 | } |