Don't call updateAccessibility from graphicsview
Graphics items are not accessible anyway, so it doesn't make much sense. Task-number: QTBUG-30169 Change-Id: Id10b0897bce88d9b91db84609a09495aac41b0b4 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>bb10
parent
0189cd123d
commit
d76b0d9c6f
|
|
@ -745,9 +745,6 @@
|
|||
#include <QtGui/qevent.h>
|
||||
#include <QtGui/qinputmethod.h>
|
||||
#include <QtWidgets/qgraphicseffect.h>
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
# include "qaccessible.h"
|
||||
#endif
|
||||
|
||||
#include <private/qgraphicsitem_p.h>
|
||||
#include <private/qgraphicswidget_p.h>
|
||||
|
|
@ -7322,12 +7319,6 @@ void QGraphicsItem::updateMicroFocus()
|
|||
if (scene()->views().at(i) == fw) {
|
||||
if (qApp)
|
||||
qApp->inputMethod()->update(Qt::ImQueryAll);
|
||||
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
// ##### is this correct
|
||||
if (toGraphicsObject())
|
||||
QAccessible::updateAccessibility(toGraphicsObject(), 0, QAccessible::StateChanged);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,9 +245,6 @@
|
|||
#include <QtGui/qtransform.h>
|
||||
#include <QtGui/qinputmethod.h>
|
||||
#include <QtWidgets/qgraphicseffect.h>
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
# include <QtGui/qaccessible.h>
|
||||
#endif
|
||||
#include <private/qapplication_p.h>
|
||||
#include <private/qobject_p.h>
|
||||
#include <private/qgraphicseffect_p.h>
|
||||
|
|
@ -836,14 +833,6 @@ void QGraphicsScenePrivate::setFocusItemHelper(QGraphicsItem *item,
|
|||
focusItem = item;
|
||||
updateInputMethodSensitivityInViews();
|
||||
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
if (focusItem) {
|
||||
if (QGraphicsObject *focusObj = focusItem->toGraphicsObject()) {
|
||||
QAccessibleEvent event(focusObj, QAccessible::Focus);
|
||||
QAccessible::updateAccessibility(&event);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (item) {
|
||||
QFocusEvent event(QEvent::FocusIn, focusReason);
|
||||
sendEvent(item, &event);
|
||||
|
|
|
|||
Loading…
Reference in New Issue