Cocoa: Fix accessiiblityPerformAction

Remove hardcoded pressAction();

Change-Id: Ie02e3f2f88a2cd311aec1b39daa160efb3b2b617
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
This commit is contained in:
Morten Johan Sorvig 2012-01-23 14:55:48 +01:00 committed by Qt by Nokia
parent 9a81e37107
commit 31043e6b8d

View File

@ -204,8 +204,7 @@ static QAccessibleInterface *acast(void *ptr)
- (void)accessibilityPerformAction:(NSString *)action {
QAccessibleActionInterface *actionInterface = acast(accessibleInterface)->actionInterface();
if (actionInterface) {
QString qtAction = QCocoaAccessible::translateAction(action);
actionInterface->doAction(QAccessibleActionInterface::pressAction());
actionInterface->doAction(QCocoaAccessible::translateAction(action));
}
}