Ensure that titleHeight is at least height of buttons

Required to properly lay out the title in case of vertical or
bottom alignment.

BUG: 304822
FIXED-IN: 4.9.1
REVIEW: 105937
This commit is contained in:
Martin Gräßlin 2012-08-08 23:14:51 +02:00
parent 23f2de009b
commit fb01e4ab8c

View file

@ -141,7 +141,7 @@ Decoration {
horizontalAlignment: auroraeTheme.horizontalAlignment
verticalAlignment: auroraeTheme.verticalAlignment
elide: Text.ElideRight
height: auroraeTheme.titleHeight
height: Math.max(auroraeTheme.titleHeight, auroraeTheme.buttonHeight * auroraeTheme.buttonSizeFactor)
color: decoration.active ? auroraeTheme.activeTextColor : auroraeTheme.inactiveTextColor
font: decoration.active ? options.activeTitleFont : options.inactiveTitleFont
anchors {