Remove duplicate code expanding size hint of panel to fit text

QtQuickControls already does this inside Button code. This hint is meant
to be "what's the default size for a panel to be".

Change-Id: I12fd084a3d3c35b172fbff9c7d3ab5c5565a82dc
This commit is contained in:
David Edmundson 2015-10-18 23:37:02 +01:00
parent 84fc7672f6
commit e6ba526539

View File

@ -111,7 +111,7 @@ QtQuickControlStyle.ButtonStyle {
if (control.text.length == 0) { if (control.text.length == 0) {
height; height;
} else { } else {
Math.max(theme.mSize(theme.defaultFont).width*12, style.minimumWidth); theme.mSize(theme.defaultFont).width*12
} }
} }