Remove some dead code.
Change-Id: Iea86a30d96465bcfe78531c88040b65c6eb9f5b4 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
parent
c24a7377dd
commit
4ed8356053
@ -55,39 +55,8 @@ class QAccessibleObjectPrivate
|
||||
{
|
||||
public:
|
||||
QPointer<QObject> object;
|
||||
|
||||
QList<QByteArray> actionList() const;
|
||||
};
|
||||
|
||||
QList<QByteArray> QAccessibleObjectPrivate::actionList() const
|
||||
{
|
||||
QList<QByteArray> actionList;
|
||||
|
||||
if (!object)
|
||||
return actionList;
|
||||
|
||||
const QMetaObject *mo = object->metaObject();
|
||||
Q_ASSERT(mo);
|
||||
|
||||
QByteArray defaultAction = QMetaObject::normalizedSignature(
|
||||
mo->classInfo(mo->indexOfClassInfo("DefaultSlot")).value());
|
||||
|
||||
for (int i = 0; i < mo->methodCount(); ++i) {
|
||||
const QMetaMethod member = mo->method(i);
|
||||
if (member.methodType() != QMetaMethod::Slot && member.access() != QMetaMethod::Public)
|
||||
continue;
|
||||
|
||||
if (!qstrcmp(member.tag(), "QACCESSIBLE_SLOT")) {
|
||||
if (member.methodSignature() == defaultAction)
|
||||
actionList.prepend(defaultAction);
|
||||
else
|
||||
actionList << member.methodSignature();
|
||||
}
|
||||
}
|
||||
|
||||
return actionList;
|
||||
}
|
||||
|
||||
/*!
|
||||
\class QAccessibleObject
|
||||
\brief The QAccessibleObject class implements parts of the
|
||||
|
Loading…
x
Reference in New Issue
Block a user