Remove Layout.minimumWidth from Button and ToolButton

This fixes non-square buttons in plasma-pa.
This commit is contained in:
Noah Davis 2020-08-30 21:23:45 -04:00
parent 4980e4e985
commit 0f96187bfa
2 changed files with 0 additions and 4 deletions

View File

@ -19,8 +19,6 @@ T.Button {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
leftPadding: background.leftMargin
topPadding: background.topMargin
rightPadding: background.rightMargin

View File

@ -19,8 +19,6 @@ T.ToolButton {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
Layout.minimumWidth: contentItem.implicitWidth + leftPadding + rightPadding
leftPadding: background.leftMargin
topPadding: background.topMargin
rightPadding: background.rightMargin