binding loop--
This commit is contained in:
parent
fb8ec6f147
commit
58d9657594
@ -98,7 +98,7 @@ Item {
|
||||
|
||||
//icon + label + left margin + right margin + spacing between icon and text
|
||||
property real minimumWidth: icon.width + label.preferredWidth + surfaceNormal.margins.left + surfaceNormal.margins.right + ((icon.valid) ? surfaceNormal.margins.left : 0)
|
||||
property real minimumHeight: Math.max(icon.height, label.paintedHeight) + surfaceNormal.margins.top + surfaceNormal.margins.bottom
|
||||
property real minimumHeight: Math.max(theme.smallIconSize, label.paintedHeight) + surfaceNormal.margins.top + surfaceNormal.margins.bottom
|
||||
|
||||
signal clicked()
|
||||
|
||||
|
@ -93,7 +93,7 @@ Item {
|
||||
|
||||
//icon + label + left margin + right margin + spacing between icon and text
|
||||
property real minimumWidth: icon.width + label.preferredWidth + delegate.margins.left + delegate.margins.right + ((icon.valid) ? delegate.margins.left : 0)
|
||||
property real minimumHeight: Math.max(icon.height, label.paintedHeight) + delegate.margins.top + delegate.margins.bottom
|
||||
property real minimumHeight: Math.max(theme.smallIconSize, label.paintedHeight) + delegate.margins.top + delegate.margins.bottom
|
||||
|
||||
implicitWidth: {
|
||||
if (label.text.length == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user