Center vertical text

Change-Id: I2c20b4f0dabdeb1af7c6df9383df343d05dd2a09
Reviewed-on: http://codereview.qt.nokia.com/1569
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
Jens Bache-Wiig
2011-07-12 16:28:51 +02:00
committed by Daniel Molkentin
parent 6df35e8e36
commit e30da00c5e
@@ -37,7 +37,7 @@ Components.Button {
id:button
// dm: this is wrong
width: Math.max(sizehint.width, button.iconSource !== "" ? labelItem.contentsWidth : 0 )
width: Math.max(sizehint.width, button.iconSource !== "" ? labelItem.contentsWidth + 8 : 0 )
height: Math.max(22, sizehint.height)
property variant sizehint: backgroundItem.sizeFromContents(80, 6)
@@ -74,6 +74,7 @@ Components.Button {
Row {
id: row
anchors.centerIn: parent
anchors.verticalCenterOffset: -1
spacing: 4
Image {
source: iconSource