Remove QAccessibleEvent

It was unused and I don't quite understand its purpose any more.

Change-Id: I5c946a1644fd64508cb4aad78320ae96fd935d31
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
This commit is contained in:
Frederik Gladhorn 2012-01-09 14:18:18 +01:00 committed by Qt by Nokia
parent 265ce60718
commit ad16382135
6 changed files with 0 additions and 47 deletions

View File

@ -185,9 +185,6 @@ public:
HoverLeave = 128, // mouse cursor leaves a hover widget
HoverMove = 129, // mouse cursor move inside a hover widget
AccessibilityHelp = 119, // accessibility help text request
AccessibilityDescription = 130, // accessibility description text request
// last event id used = 132
#ifdef QT_KEYPAD_NAVIGATION

View File

@ -416,20 +416,6 @@ public:
private:
};
class QAccessibleEvent : public QEvent
{
public:
inline QAccessibleEvent(Type type);
inline QString value() const { return val; }
inline void setValue(const QString &aText) { val = aText; }
private:
QString val;
};
inline QAccessibleEvent::QAccessibleEvent(Type atype)
: QEvent(atype) {}
#define QAccessibleInterface_iid "com.trolltech.Qt.QAccessibleInterface"
Q_DECLARE_INTERFACE(QAccessibleInterface, QAccessibleInterface_iid)

View File

@ -598,7 +598,6 @@ QT_CLASS_LIB(QTDSDriver, QtSql, qsql_tds.h)
QT_CLASS_LIB(QAccessible, QtWidgets, qaccessible.h)
QT_CLASS_LIB(QAccessibleInterface, QtWidgets, qaccessible.h)
QT_CLASS_LIB(QAccessibleInterfaceEx, QtWidgets, qaccessible.h)
QT_CLASS_LIB(QAccessibleEvent, QtWidgets, qaccessible.h)
QT_CLASS_LIB(QAccessible2Interface, QtWidgets, qaccessible2.h)
QT_CLASS_LIB(QAccessibleTextInterface, QtWidgets, qaccessible2.h)
QT_CLASS_LIB(QAccessibleEditableTextInterface, QtWidgets, qaccessible2.h)

View File

@ -3423,8 +3423,6 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
case QEvent::Style:
case QEvent::IconDrag:
case QEvent::StyleChange:
case QEvent::AccessibilityHelp:
case QEvent::AccessibilityDescription:
case QEvent::GraphicsSceneDragEnter:
case QEvent::GraphicsSceneDragMove:
case QEvent::GraphicsSceneDragLeave:

View File

@ -8186,26 +8186,6 @@ bool QWidget::event(QEvent *event)
if (d->whatsThis.isEmpty())
event->ignore();
break;
#endif
#ifndef QT_NO_ACCESSIBILITY
case QEvent::AccessibilityDescription:
case QEvent::AccessibilityHelp: {
QAccessibleEvent *ev = static_cast<QAccessibleEvent *>(event);
switch (ev->type()) {
#ifndef QT_NO_TOOLTIP
case QEvent::AccessibilityDescription:
ev->setValue(d->toolTip);
break;
#endif
#ifndef QT_NO_WHATSTHIS
case QEvent::AccessibilityHelp:
ev->setValue(d->whatsThis);
break;
#endif
default:
return false;
}
break; }
#endif
case QEvent::EmbeddingControl:
d->topData()->frameStrut.setCoords(0 ,0, 0, 0);

View File

@ -285,13 +285,6 @@ static QEvent *cloneEvent(QEvent *e)
case QEvent::HoverMove:
return new QHoverEvent(*static_cast<QHoverEvent*>(e));
case QEvent::AccessibilityHelp:
Q_ASSERT_X(false, "cloneEvent()", "not implemented");
break;
case QEvent::AccessibilityDescription:
Q_ASSERT_X(false, "cloneEvent()", "not implemented");
break;
#ifdef QT_KEYPAD_NAVIGATION
case QEvent::EnterEditFocus:
return new QEvent(*e);