QmlDesigner: Fix states list button icon alignment

* Fix button icon alignment after collapse and expand
* Fix parameter injection warning in StatesList

Task-number: QDS-5054
Change-Id: If842e48c15485f79b6515e781139dfb07cd6fa07
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2021-09-16 12:15:46 +02:00
committed by Thomas Hartmann
parent 69475d37fe
commit 8755b2336f
2 changed files with 3 additions and 3 deletions

View File

@@ -67,8 +67,8 @@ T.AbstractButton {
indicator: Item {
x: 0
y: 0
implicitWidth: myButton.width
implicitHeight: myButton.height
width: myButton.width
height: myButton.height
T.Label {
id: buttonIcon

View File

@@ -79,7 +79,7 @@ FocusScope {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: {
onClicked: function(mouse) {
if (mouse.button === Qt.LeftButton) {
contextMenu.dismiss()
focus = true