diff options
author | Joni Poikelin <joni.poikelin@qt.io> | 2021-04-06 12:05:45 +0300 |
---|---|---|
committer | Joni Poikelin <joni.poikelin@qt.io> | 2021-05-03 10:59:30 +0300 |
commit | 8c55089207fa2381f24cf7e718a519c078a1338e (patch) | |
tree | de89753ce46ce90841adabd91c91f0c54ca5c4eb | |
parent | bf8996c3bad5c6335adf739f59f0c3cb8757db25 (diff) | |
download | qtquickcontrols-8c55089207fa2381f24cf7e718a519c078a1338e.tar.gz |
Fix warning with QML FileDialog with many files
Fixes: QTBUG-92444
Change-Id: I3920fa1da087752049b5c83b23995b2e88e3ca96
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/controls/Private/BasicTableView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Private/BasicTableView.qml b/src/controls/Private/BasicTableView.qml index d38c0694..1422c87a 100644 --- a/src/controls/Private/BasicTableView.qml +++ b/src/controls/Private/BasicTableView.qml @@ -491,7 +491,7 @@ ScrollView { y: listView.contentHeight - listView.contentY + listView.originY width: parent.width visible: alternatingRowColors - height: listView.model && listView.model.count ? (viewport.height - listView.contentHeight) : 0 + height: listView.model && listView.model.count ? Math.max(viewport.height - listView.contentHeight, 0) : 0 Repeater { model: visible ? parent.paddedRowCount : 0 Loader { |