binding loop--

This commit is contained in:
Marco Martin 2012-10-18 16:50:59 +02:00
parent fb8ec6f147
commit 58d9657594
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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) {