Export titleHeight for caption element

This commit is contained in:
Martin Gräßlin 2012-01-09 22:02:05 +01:00
parent 9b5f5a49cc
commit 90c882161c
3 changed files with 4 additions and 0 deletions

View file

@ -467,6 +467,7 @@ THEME_CONFIG(titleEdgeRightMaximized)
THEME_CONFIG(titleEdgeTopMaximized)
THEME_CONFIG(titleBorderLeft)
THEME_CONFIG(titleBorderRight)
THEME_CONFIG(titleHeight)
#undef THEME_CONFIG

View file

@ -101,6 +101,7 @@ class /*LIBAURORAE_EXPORT*/ AuroraeTheme : public QObject
Q_PROPERTY(int titleEdgeTopMaximized READ titleEdgeTopMaximized NOTIFY themeChanged)
Q_PROPERTY(int titleBorderRight READ titleBorderRight NOTIFY themeChanged)
Q_PROPERTY(int titleBorderLeft READ titleBorderLeft NOTIFY themeChanged)
Q_PROPERTY(int titleHeight READ titleHeight NOTIFY themeChanged)
Q_PROPERTY(QString decorationPath READ decorationPath NOTIFY themeChanged)
Q_PROPERTY(QString minimizeButtonPath READ minimizeButtonPath NOTIFY themeChanged)
Q_PROPERTY(QString maximizeButtonPath READ maximizeButtonPath NOTIFY themeChanged)
@ -158,6 +159,7 @@ public:
int titleEdgeTopMaximized() const;
int titleBorderLeft() const;
int titleBorderRight() const;
int titleHeight() const;
QString decorationPath() const;
QString minimizeButtonPath() const;
QString maximizeButtonPath() const;

View file

@ -145,6 +145,7 @@ Decoration {
horizontalAlignment: auroraeTheme.horizontalAlignment
verticalAlignment: auroraeTheme.verticalAlignment
elide: Text.ElideRight
height: auroraeTheme.titleHeight
anchors {
left: leftButtonGroup.right
right: rightButtonGroup.left