forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
69475d37fe
commit
8755b2336f
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user