Change PC3 Button and ToolButton implicitWidth and implicitHeight to account for inset values
This commit is contained in:
parent
73865f7171
commit
9e9136bddd
@ -14,10 +14,10 @@ import "private" as Private
|
||||
T.Button {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(units.gridUnit, contentItem.implicitWidth)
|
||||
+ leftPadding + rightPadding
|
||||
implicitHeight: Math.max(units.gridUnit, contentItem.implicitHeight)
|
||||
+ topPadding + bottomPadding
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
|
||||
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
|
||||
|
||||
@ -86,7 +86,5 @@ T.Button {
|
||||
}
|
||||
}
|
||||
|
||||
background: Private.ButtonBackground {
|
||||
parentControl: control
|
||||
}
|
||||
background: Private.ButtonBackground {}
|
||||
}
|
||||
|
@ -14,10 +14,10 @@ import "private" as Private
|
||||
T.ToolButton {
|
||||
id: control
|
||||
|
||||
implicitWidth: Math.max(units.gridUnit, contentItem.implicitWidth)
|
||||
+ leftPadding + rightPadding
|
||||
implicitHeight: Math.max(units.gridUnit, contentItem.implicitHeight)
|
||||
+ topPadding + bottomPadding
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
|
||||
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
|
||||
|
||||
@ -96,7 +96,5 @@ T.ToolButton {
|
||||
}
|
||||
}
|
||||
|
||||
background: Private.ButtonBackground {
|
||||
parentControl: control
|
||||
}
|
||||
background: Private.ButtonBackground {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user