summaryrefslogtreecommitdiff
path: root/src/controls/Private/BasicTableView.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-10-02 14:45:05 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-10-04 11:15:31 +0200
commit59264fc24e3806a7e43379a2b8c610148f89cccb (patch)
treefb8ea77d461c5c68a98b59b9bd4e152606795028 /src/controls/Private/BasicTableView.qml
parent6eac099fa98b6dbe5a01ad90e4a1348729b1332b (diff)
downloadqtquickcontrols-59264fc24e3806a7e43379a2b8c610148f89cccb.tar.gz
Make restoreMode on all Binding elements explicit
The default is going to change in 5.15. Change-Id: Ib17500791476bd45ed2c7c3736186897fb63d7a0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/controls/Private/BasicTableView.qml')
-rw-r--r--src/controls/Private/BasicTableView.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/Private/BasicTableView.qml b/src/controls/Private/BasicTableView.qml
index 6c7c5511..48e6eadc 100644
--- a/src/controls/Private/BasicTableView.qml
+++ b/src/controls/Private/BasicTableView.qml
@@ -48,6 +48,7 @@
// We mean it.
//
+import QtQml 2.14 as Qml
import QtQuick 2.6
import QtQuick.Controls 1.5
import QtQuick.Controls.Private 1.0
@@ -426,7 +427,7 @@ ScrollView {
&& !transientScrollBars && Qt.platform.os === "osx" ?
__verticalScrollBar.width + __scroller.scrollBarSpacing + root.__style.padding.right : 0
- Binding {
+ Qml.Binding {
// On Mac, we reserve the vSB space in the contentItem because the vSB should
// appear under the header. Unfortunately, the ListView header won't expand
// beyond the ListView's boundaries, that's why we need to ressort to this.
@@ -434,6 +435,7 @@ ScrollView {
when: Qt.platform.os === "osx"
property: "verticalScrollbarOffset"
value: 0
+ restoreMode: Binding.RestoreBinding
}
function incrementCurrentIndexBlocking() {