mirror of
https://github.com/rgriebl/brickstore.git
synced 2026-05-25 02:08:24 -05:00
iOS: Work around a11y crash in TableView
This commit is contained in:
@@ -33,6 +33,9 @@ static struct DisableA11YOnAndroid // clazy:exclude=non-pod-global-static
|
||||
qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1");
|
||||
}
|
||||
} disableA11YOnAndroid;
|
||||
|
||||
#elif defined(Q_OS_IOS)
|
||||
# include <QtGui/QAccessible>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -61,6 +64,12 @@ MobileApplication::MobileApplication(int &argc, char **argv)
|
||||
{}, qApp));
|
||||
}
|
||||
#endif
|
||||
#if defined(Q_OS_IOS)
|
||||
// QML's TableView crashes when empty, if a11y features are enabled
|
||||
// (e.g. "Full Keyboard Access" in the simulator)
|
||||
QAccessible::installUpdateHandler([](QAccessibleEvent *) { });
|
||||
QAccessible::installRootObjectHandler([](QObject *) { });
|
||||
#endif
|
||||
}
|
||||
|
||||
void MobileApplication::init()
|
||||
|
||||
Reference in New Issue
Block a user