diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-04-29 12:43:28 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-04-29 12:43:28 (GMT) |
commit | 37beda2303649664c71c2cc32292d5b54547032b (patch) | |
tree | b0903bd2a7561f4388016b2c00b74754c6a20cd5 /src/gui/styles/qs60style_simulated.cpp | |
parent | 60f3b87e503b149159b63638178183fa4f5306bb (diff) | |
download | Qt-37beda2303649664c71c2cc32292d5b54547032b.zip Qt-37beda2303649664c71c2cc32292d5b54547032b.tar.gz Qt-37beda2303649664c71c2cc32292d5b54547032b.tar.bz2 |
S60Style: Styled QToolBar implementation.
Diffstat (limited to 'src/gui/styles/qs60style_simulated.cpp')
-rw-r--r-- | src/gui/styles/qs60style_simulated.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp index 68f0b70..17c1ebe 100644 --- a/src/gui/styles/qs60style_simulated.cpp +++ b/src/gui/styles/qs60style_simulated.cpp @@ -131,7 +131,7 @@ QPixmap QS60StylePrivate::frame(SkinFrameElements frame, const QSize &size, // The size of topLeft defines all other sizes const QSize cornerSize(partSize(topLeft)); // if frame is so small that corners would cover it completely, draw only center piece - const bool drawOnlyCenter = + const bool drawOnlyCenter = 2 * cornerSize.width() + 1 >= size.width() || 2 * cornerSize.height() + 1 >= size.height(); const int cornerWidth = cornerSize.width(); @@ -200,6 +200,12 @@ bool QS60StylePrivate::isTouchSupported() #endif } +bool QS60StylePrivate::isToolBarBackground() +{ + return true; +} + + QFont QS60StylePrivate::s60Font_specific(QS60StyleEnums::FontCategories fontCategory, int pointSize) { QFont result; |