summaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/extras/flat/main.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 /examples/quickcontrols/extras/flat/main.qml
parent6eac099fa98b6dbe5a01ad90e4a1348729b1332b (diff)
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 'examples/quickcontrols/extras/flat/main.qml')
-rw-r--r--examples/quickcontrols/extras/flat/main.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/quickcontrols/extras/flat/main.qml b/examples/quickcontrols/extras/flat/main.qml
index d91c20633..661225eb7 100644
--- a/examples/quickcontrols/extras/flat/main.qml
+++ b/examples/quickcontrols/extras/flat/main.qml
@@ -48,6 +48,7 @@
**
****************************************************************************/
+import QtQml 2.14 as Qml
import QtQuick 2.4
import QtQuick.Layouts 1.0
import QtQuick.Controls 1.4
@@ -138,11 +139,12 @@ ApplicationWindow {
height: parent.height
// Don't let the menus become visible when resizing the window
- Binding {
+ Qml.Binding {
target: controlsMenu
property: "x"
value: container.x - controlsMenu.width
when: !xBehavior.enabled && !xNumberAnimation.running && currentMenu == -1
+ restoreMode: Binding.RestoreBinding
}
Behavior on x {