diff --git a/src/controls/private/ActionButton.qml b/src/controls/private/ActionButton.qml --- a/src/controls/private/ActionButton.qml +++ b/src/controls/private/ActionButton.qml @@ -36,18 +36,17 @@ clip: true //either Action or QAction should work here - property QtObject action: root.parent.parent ? root.parent.parent.mainAction : null - property QtObject leftAction: root.parent.parent ? root.parent.parent.leftAction : null - property QtObject rightAction: root.parent.parent ? root.parent.parent.rightAction : null - - onWidthChanged: button.x = root.width/2 - button.width/2 + readonly property QtObject action: root.parent.parent ? root.parent.parent.mainAction : null + readonly property QtObject leftAction: root.parent.parent ? root.parent.parent.leftAction : null + readonly property QtObject rightAction: root.parent.parent ? root.parent.parent.rightAction : null transform: Translate { id: translateTransform } Item { id: button + x: root.width/2 - button.width/2 anchors { bottom: parent.bottom @@ -243,7 +242,7 @@ selected: buttonGraphics.pressed anchors { fill: parent - margins: Units.smallSpacing + margins: Units.smallSpacing * 3 } } Behavior on color { @@ -282,7 +281,7 @@ left: parent.left top: parent.top bottom: parent.bottom - margins: Units.smallSpacing + margins: Units.smallSpacing * 2 } } } @@ -308,7 +307,7 @@ right: parent.right top: parent.top bottom: parent.bottom - margins: Units.smallSpacing + margins: Units.smallSpacing * 2 } } } diff --git a/src/controls/private/PageActionPropertyGroup.qml b/src/controls/private/PageActionPropertyGroup.qml --- a/src/controls/private/PageActionPropertyGroup.qml +++ b/src/controls/private/PageActionPropertyGroup.qml @@ -20,7 +20,6 @@ import QtQml 2.1 QtObject { - id: actionsGroup property QtObject main property QtObject left property QtObject right