diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-02 14:45:05 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-04 11:15:31 +0200 |
| commit | 59264fc24e3806a7e43379a2b8c610148f89cccb (patch) | |
| tree | fb8ea77d461c5c68a98b59b9bd4e152606795028 /src/controls/MenuBar.qml | |
| parent | 6eac099fa98b6dbe5a01ad90e4a1348729b1332b (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 'src/controls/MenuBar.qml')
| -rw-r--r-- | src/controls/MenuBar.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml index a98d0e810..2628d0643 100644 --- a/src/controls/MenuBar.qml +++ b/src/controls/MenuBar.qml @@ -37,6 +37,7 @@ ** ****************************************************************************/ +import QtQml 2.14 as Qml import QtQuick 2.2 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.1 @@ -130,11 +131,12 @@ MenuBarPrivate { width: implicitWidth || root.__contentItem.preferredWidth height: Math.max(row.height + d.heightPadding, item ? item.implicitHeight : 0) - Binding { + Qml.Binding { // Make sure the styled menu bar is in the background target: menuBarLoader.item property: "z" value: menuMouseArea.z - 1 + restoreMode: Binding.RestoreBinding } QtObject { |
