QQuickTreeView test: Fix valid compiler warning
QQuickTreeView::depth returns an int, not a bool, and rowToExpandDepth is used in arithmetics and to compare to an int, so declaring it as a bool is definitely wrong. Pick-to: 6.5 Change-Id: Iea127e6cc61e5a8195dc537ad4e62dc88570f874 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
parent
77886b496d
commit
c23afb3247
|
@ -513,7 +513,7 @@ void tst_qquicktreeview::expandRecursivelyChild()
|
|||
|
||||
WAIT_UNTIL_POLISHED;
|
||||
|
||||
const bool rowToExpandDepth = treeView->depth(rowToExpand);
|
||||
const int rowToExpandDepth = treeView->depth(rowToExpand);
|
||||
const int effectiveMaxDepth = depth != -1 ? rowToExpandDepth + depth : model->maxDepth();
|
||||
|
||||
// Check that none of the rows before rowToExpand are expanded
|
||||
|
|
Loading…
Reference in New Issue