leave a bit of room around headings

make sure heights are integer
CCBUG:336123
This commit is contained in:
Marco Martin 2014-06-13 11:42:40 +02:00
parent ba6698e140
commit 09d0c44267
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
Text {
id: root
height: Math.max(paintedHeight, theme.mSize(theme.defaultFont).height*1.6)
height: Math.round(Math.max(paintedHeight, theme.mSize(theme.defaultFont).height*1.6))
verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
activeFocusOnTab: false

View File

@ -55,6 +55,7 @@ Label {
property int step: 2
height: Math.round(paintedHeight * 1.2)
font.pointSize: headerPointSize(level)
font.weight: Font.Light
wrapMode: Text.WordWrap