diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2019-10-01 15:40:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 15:40:39 +0200 |
commit | e27309d08a0c17a9b3cdd8c9e8a58a592f88b7be (patch) | |
tree | b3c5091fe1d12f978c31e3fe82040e28e70ab913 /application/groupview/GroupView.cpp | |
parent | ce7917048a2bdac7e74548a849a518fcf83226fa (diff) | |
parent | dec6759e61cc844802b4eb105fed957c151e96ac (diff) | |
download | PrismLauncher-e27309d08a0c17a9b3cdd8c9e8a58a592f88b7be.tar.gz PrismLauncher-e27309d08a0c17a9b3cdd8c9e8a58a592f88b7be.tar.bz2 PrismLauncher-e27309d08a0c17a9b3cdd8c9e8a58a592f88b7be.zip |
Merge pull request #2870 from kb-1000/fix-accessibility
Add checks for QT_NO_ACCESSIBILITY to prevent build issues with Qt without accessibility
Diffstat (limited to 'application/groupview/GroupView.cpp')
-rw-r--r-- | application/groupview/GroupView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/application/groupview/GroupView.cpp b/application/groupview/GroupView.cpp index ff0daee4..5ccbfd39 100644 --- a/application/groupview/GroupView.cpp +++ b/application/groupview/GroupView.cpp @@ -93,11 +93,13 @@ void GroupView::currentChanged(const QModelIndex& current, const QModelIndex& pr { QAbstractItemView::currentChanged(current, previous); // TODO: for accessibility support, implement+register a factory, steal QAccessibleTable from Qt and return an instance of it for GroupView. +#ifndef QT_NO_ACCESSIBILITY if (QAccessible::isActive() && current.isValid()) { QAccessibleEvent event(this, QAccessible::Focus); event.setChild(current.row()); QAccessible::updateAccessibility(&event); } +#endif /* !QT_NO_ACCESSIBILITY */ } |