summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-04-15 10:34:18 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-04-15 10:34:18 (GMT)
commit6a78005ed2e2d29225e322d53bb422438c8f9935 (patch)
treea95867afbd5bec4abe0e96137fa10b330200c029 /src/gui/styles/qs60style.cpp
parente93dd08b675029388d810eeea45e5f005642fcc9 (diff)
downloadQt-6a78005ed2e2d29225e322d53bb422438c8f9935.zip
Qt-6a78005ed2e2d29225e322d53bb422438c8f9935.tar.gz
Qt-6a78005ed2e2d29225e322d53bb422438c8f9935.tar.bz2
Slider graphics does not look correct in N95 (part2)
The original fix for this, only fixed horizontal widgets. But the same issue can be reproduced also with vertical widgets. This latter fix replaces the orginal fix. Task-number: QTBUG-9854 Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 3259d82..7587343 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -548,11 +548,11 @@ void QS60StylePrivate::drawRow(QS60StyleEnums::SkinParts start,
startEndSize.scale(rect.size(), Qt::KeepAspectRatio);
QRect startRect = QRect(rect.topLeft(), startEndSize);
- startRect.setHeight(rect.height());
QRect middleRect = rect;
QRect endRect;
if (orientation == Qt::Horizontal) {
+ startRect.setHeight(rect.height());
startRect.setWidth(qMin((rect.width() >> 1) - 1, startRect.width()));
endRect = startRect.translated(rect.width() - startRect.width(), 0);
middleRect.adjust(startRect.width(), 0, -startRect.width(), 0);
@@ -562,6 +562,7 @@ void QS60StylePrivate::drawRow(QS60StyleEnums::SkinParts start,
endRect.adjust(overlap, 0, 0, 0);
}
} else {
+ startRect.setWidth(rect.width());
startRect.setHeight(qMin((rect.height() >> 1) - 1, startRect.height()));
endRect = startRect.translated(0, rect.height() - startRect.height());
middleRect.adjust(0, startRect.height(), 0, -startRect.height());