Skip to content
Snippets Groups Projects
Commit e30da00c authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by Daniel Molkentin
Browse files

Center vertical text

Change-Id: I2c20b4f0dabdeb1af7c6df9383df343d05dd2a09
Reviewed-on: http://codereview.qt.nokia.com/1569


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 6df35e8e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment