summaryrefslogtreecommitdiff
path: root/src/controls/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Button.qml')
-rw-r--r--src/controls/Button.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/controls/Button.qml b/src/controls/Button.qml
index 71e657ec..73b3b349 100644
--- a/src/controls/Button.qml
+++ b/src/controls/Button.qml
@@ -37,6 +37,7 @@
**
****************************************************************************/
+import QtQml 2.14 as Qml
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Private 1.0
@@ -93,16 +94,18 @@ BasicButton {
style: Settings.styleComponent(Settings.style, "ButtonStyle.qml", button)
- Binding {
+ Qml.Binding {
target: menu
property: "__minimumWidth"
value: button.__panel.width
+ restoreMode: Binding.RestoreBinding
}
- Binding {
+ Qml.Binding {
target: menu
property: "__visualItem"
value: button
+ restoreMode: Binding.RestoreBinding
}
Connections {