Commit cb20a83c authored by Dominik Haumann's avatar Dominik Haumann
Browse files

check for availability of Qt accessibility module

Thanks to Artem Anisimov for the patch & sorry for the delay!
BUG: 262939
FIXED-IN: 4.7.0
parent 509f95f5
......@@ -19,6 +19,7 @@
#ifndef _KATE_VIEW_ACCESSIBLE_
#define _KATE_VIEW_ACCESSIBLE_
#ifndef QT_NO_ACCESSIBILITY
#include "kateviewinternal.h"
#include "katetextcursor.h"
......@@ -318,3 +319,4 @@ QAccessibleInterface* accessibleInterfaceFactory(const QString &key, QObject *ob
}
#endif
#endif
......@@ -216,7 +216,9 @@ KateViewInternal::KateViewInternal(KateView *view)
connect( m_view, SIGNAL( selectionChanged(KTextEditor::View*) ),
this, SLOT( viewSelectionChanged() ) );
#ifndef QT_NO_ACCESSIBILITY
QAccessible::installFactory(accessibleInterfaceFactory);
#endif
// update is called in KateView, after construction and layout is over
// but before any other kateviewinternal call
......@@ -224,7 +226,9 @@ KateViewInternal::KateViewInternal(KateView *view)
KateViewInternal::~KateViewInternal ()
{
#ifndef QT_NO_ACCESSIBILITY
QAccessible::removeFactory(accessibleInterfaceFactory);
#endif
// kill preedit ranges
delete m_imPreeditRange;
......@@ -646,7 +650,9 @@ void KateViewInternal::makeVisible (const KTextEditor::Cursor& c, int endCol, bo
m_madeVisible = !force;
#ifndef QT_NO_ACCESSIBILITY
QAccessible::updateAccessibility( this, KateCursorAccessible::ChildId, QAccessible::Focus );
#endif
}
void KateViewInternal::slotRegionVisibilityChangedAt(unsigned int,bool clear_cache)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment