From e93dd08b675029388d810eeea45e5f005642fcc9 Mon Sep 17 00:00:00 2001 From: Sami Merila Date: Thu, 15 Apr 2010 10:39:27 +0300 Subject: Slider graphics does not look correct in N95 The upscaling of theme graphics fails, if the original rect is taller than upscaled graphics rect height. This makes the start and end parts of the graphics appear as shorter then they should be. Fixed by forcing the destrination rect height to be used after upscaling the graphics. Task-number: QTBUG-9854 Reviewed-by: Janne Anttila --- src/gui/styles/qs60style.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 27913cd..3259d82 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -548,6 +548,7 @@ 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; -- cgit v0.12