Commit bfa7648c authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Qt by Nokia

Remove all accessibility updates to allow changes in qtbase.

In order to integrate pending api changes these are temporarily
removed and will return fixed as soon as qtbase is up to date.

Change-Id: I558b6049ac3342d41d67441ddfba6821fc370533
Reviewed-by: default avatarJan-Arve Sæther <jan-arve.saether@nokia.com>
parent c8262855
......@@ -144,7 +144,6 @@ QQuickAccessibleAttached::QQuickAccessibleAttached(QObject *parent)
// Enable accessibility for items with accessible content. This also
// enables accessibility for the ancestors of souch items.
item->d_func()->setAccessibleFlagAndListener();
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::ObjectCreated, item));
}
QQuickAccessibleAttached::~QQuickAccessibleAttached()
......
......@@ -85,7 +85,6 @@ public:
if (name != m_name) {
m_name = name;
emit nameChanged();
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::NameChanged, parent()));
}
}
......@@ -95,7 +94,6 @@ public:
if (m_description != description) {
m_description = description;
emit descriptionChanged();
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::DescriptionChanged, parent()));
}
}
......
......@@ -3018,7 +3018,6 @@ void QQuickItem::inputMethodEvent(QInputMethodEvent *event)
void QQuickItem::focusInEvent(QFocusEvent *)
{
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::Focus, this));
}
void QQuickItem::focusOutEvent(QFocusEvent *)
......@@ -3983,9 +3982,6 @@ bool QQuickItemPrivate::setEffectiveVisibleRecur(bool newEffectiveVisible)
itemChange(QQuickItem::ItemVisibleHasChanged, effectiveVisible);
if (isAccessible)
QAccessible::updateAccessibility(QAccessibleEvent(effectiveVisible ? QAccessible::ObjectShow : QAccessible::ObjectHide, q));
emit q->visibleChanged();
if (childVisibilityChanged)
emit q->visibleChildrenChanged();
......
......@@ -3261,12 +3261,7 @@ void QQuickTextInputPrivate::internalSetText(const QString &txt, int pos, bool e
m_textDirty = (oldText != m_text);
bool changed = finishChange(-1, true, edited);
#ifdef QT_NO_ACCESSIBILITY
Q_UNUSED(changed)
#else
if (changed)
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::TextUpdated, q));
#endif
}
......@@ -3890,10 +3885,6 @@ bool QQuickTextInputPrivate::emitCursorPositionChanged()
}
}
#ifndef QT_NO_ACCESSIBILITY
QAccessible::updateAccessibility(QAccessibleEvent(QAccessible::TextCaretMoved, q));
#endif
return true;
}
return false;
......
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