diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-08-14 12:26:19 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-08-14 12:26:19 (GMT) |
commit | 2c6d744c6d9ab0b6af9734741404d4fb7e0e974e (patch) | |
tree | 5106effd1dbce9c5597395157b70fe5f101d7b88 /src/gui/styles/qs60style.cpp | |
parent | 6c8ed1862908d2152946e806a329462a5678282c (diff) | |
download | Qt-2c6d744c6d9ab0b6af9734741404d4fb7e0e974e.zip Qt-2c6d744c6d9ab0b6af9734741404d4fb7e0e974e.tar.gz Qt-2c6d744c6d9ab0b6af9734741404d4fb7e0e974e.tar.bz2 |
S60Style: Draw vertical busy indicator with correct graphic.
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 421ba78..1226e22 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -1636,7 +1636,9 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, if (optionProgressBar->minimum == optionProgressBar->maximum && optionProgressBar->minimum == 0) { // busy indicator - QS60StylePrivate::drawSkinPart(QS60StyleEnums::SP_QgnGrafBarWait, painter, progressRect,flags); + const int orientationFlag = optionProgressBar->orientation == Qt::Horizontal ? + QS60StylePrivate::SF_PointNorth : QS60StylePrivate::SF_PointWest; + QS60StylePrivate::drawSkinPart(QS60StyleEnums::SP_QgnGrafBarWait, painter, progressRect, flags | orientationFlag); } else { const qreal progressFactor = (optionProgressBar->minimum == optionProgressBar->maximum) ? 1.0 : (qreal)optionProgressBar->progress / optionProgressBar->maximum; |