treeview: fix build without accessibility
Amend 6a4afebc5c
and add ifdefs around
use of Accessibility.
Pick-to: 6.5
Change-Id: Ib40132dabeec9c3cff2f71dd5182eb1715b9c76a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
048a68c1e9
commit
84e6d89c1b
@ -3325,6 +3325,7 @@ void QTreeViewPrivate::layout(int i, bool recursiveExpanding, bool afterIsUninit
|
||||
return;
|
||||
}
|
||||
|
||||
#if QT_CONFIG(accessibility)
|
||||
// QAccessibleTree's rowCount implementation uses viewItems.size(), so
|
||||
// we need to invalidate any cached accessibility data structures if
|
||||
// that value changes during the run of this function.
|
||||
@ -3334,6 +3335,7 @@ void QTreeViewPrivate::layout(int i, bool recursiveExpanding, bool afterIsUninit
|
||||
QAccessible::updateAccessibility(&event);
|
||||
}
|
||||
});
|
||||
#endif
|
||||
|
||||
int count = 0;
|
||||
if (model->hasChildren(parent)) {
|
||||
|
Loading…
Reference in New Issue
Block a user