Commit d557bb81 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by Daniel Molkentin
Browse files

Use sizehint for QML buttons

Change-Id: I12500b87f34081f0e27829a88525c4a8fc52bae9
Reviewed-on: http://codereview.qt.nokia.com/1564

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 5c60f85a
......@@ -37,7 +37,7 @@ Components.Button {
id:button
// dm: this is wrong
width: Math.max(100, button.iconSource !== "" ? labelItem.contentsWidth+12 : 0 )
width: Math.max(sizehint.width, button.iconSource !== "" ? labelItem.contentsWidth : 0 )
height: Math.max(22, sizehint.height)
property variant sizehint: backgroundItem.sizeFromContents(80, 6)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment