Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewinternal.cpp
Show First 20 Lines • Show All 3750 Lines • ▼ Show 20 Line(s) | 3741 | { | |||
---|---|---|---|---|---|
3751 | if (m_textAnimation) { | 3751 | if (m_textAnimation) { | ||
3752 | m_textAnimation->deleteLater(); | 3752 | m_textAnimation->deleteLater(); | ||
3753 | } | 3753 | } | ||
3754 | m_textAnimation = new KateTextAnimation(range, attribute, this); | 3754 | m_textAnimation = new KateTextAnimation(range, attribute, this); | ||
3755 | } | 3755 | } | ||
3756 | 3756 | | |||
3757 | void KateViewInternal::documentTextInserted(KTextEditor::Document *document, const KTextEditor::Range &range) | 3757 | void KateViewInternal::documentTextInserted(KTextEditor::Document *document, const KTextEditor::Range &range) | ||
3758 | { | 3758 | { | ||
3759 | #ifndef QT_NO_ACCESSIBILITY | ||||
3759 | if (QAccessible::isActive()) { | 3760 | if (QAccessible::isActive()) { | ||
3760 | QAccessibleTextInsertEvent ev(this, | 3761 | QAccessibleTextInsertEvent ev(this, | ||
3761 | KateViewAccessible::positionFromCursor(this, range.start()), document->text(range)); | 3762 | KateViewAccessible::positionFromCursor(this, range.start()), document->text(range)); | ||
3762 | QAccessible::updateAccessibility(&ev); | 3763 | QAccessible::updateAccessibility(&ev); | ||
3763 | } | 3764 | } | ||
3765 | #endif | ||||
3764 | } | 3766 | } | ||
3765 | 3767 | | |||
3766 | void KateViewInternal::documentTextRemoved(KTextEditor::Document * /*document*/, const KTextEditor::Range &range, const QString &oldText) | 3768 | void KateViewInternal::documentTextRemoved(KTextEditor::Document * /*document*/, const KTextEditor::Range &range, const QString &oldText) | ||
3767 | { | 3769 | { | ||
3770 | #ifndef QT_NO_ACCESSIBILITY | ||||
3768 | if (QAccessible::isActive()) { | 3771 | if (QAccessible::isActive()) { | ||
3769 | QAccessibleTextRemoveEvent ev(this, | 3772 | QAccessibleTextRemoveEvent ev(this, | ||
3770 | KateViewAccessible::positionFromCursor(this, range.start()), oldText); | 3773 | KateViewAccessible::positionFromCursor(this, range.start()), oldText); | ||
3771 | QAccessible::updateAccessibility(&ev); | 3774 | QAccessible::updateAccessibility(&ev); | ||
3772 | } | 3775 | } | ||
3776 | #endif | ||||
3773 | } | 3777 | } |