summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-04-30 07:08:21 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-04-30 07:08:21 (GMT)
commit969b9f644187f2a04ec6c3a09e6446538823026b (patch)
tree150bfacec3fd735c78ba6002d6c086c3b5920026 /src
parent2ac2bca63ad0743a52ee946c5fae06d548b93d68 (diff)
downloadQt-969b9f644187f2a04ec6c3a09e6446538823026b.zip
Qt-969b9f644187f2a04ec6c3a09e6446538823026b.tar.gz
Qt-969b9f644187f2a04ec6c3a09e6446538823026b.tar.bz2
S60Style: buildbreak fix - missing lines from commit d333404c72aa6c707cf389899999f2247454b824
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qs60style.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 20eaf16..a232c28 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -741,6 +741,9 @@ void QS60Style::drawComplexControl(ComplexControl control, const QStyleOptionCom
{
const QS60StylePrivate::SkinElementFlags flags = (option->state & State_Enabled) ? QS60StylePrivate::SF_StateEnabled : QS60StylePrivate::SF_StateDisabled;
SubControls sub = option->subControls;
+
+ Q_D(const QS60Style);
+
switch (control) {
#ifndef QT_NO_SCROLLBAR
case CC_ScrollBar:
@@ -2203,12 +2206,12 @@ QRect QS60Style::subControlRect(ComplexControl control, const QStyleOptionComple
QS60StylePrivate::pixelMetric(QStyle::PM_ButtonIconSize) + 2*buttonMargin;
//todo: buttonMargin commented out as WAY too big in pixel metrics
QSize buttonSize;
- buttonSize.setHeight(qMax(8, spinbox->rect.height()/2 - frameThickness));
+ buttonSize.setHeight(qMax(8, spinbox->rect.height() - frameThickness));
buttonSize.setWidth(buttonWidth);
buttonSize = buttonSize.expandedTo(QApplication::globalStrut());
const int y = frameThickness + spinbox->rect.y();
- const int x = spinbox->rect.x() + spinbox->rect.width() - frameThickness - buttonSize.width();
+ const int x = spinbox->rect.x() + spinbox->rect.width() - frameThickness - 2*buttonSize.width();
switch (scontrol) {
case SC_SpinBoxUp:
@@ -2219,7 +2222,7 @@ QRect QS60Style::subControlRect(ComplexControl control, const QStyleOptionComple
case SC_SpinBoxDown:
if (spinbox->buttonSymbols == QAbstractSpinBox::NoButtons)
return QRect();
- ret = QRect(x, y + buttonSize.height(), buttonWidth, buttonSize.height());
+ ret = QRect(x+buttonSize.width(), y, buttonWidth, buttonSize.height());
break;
case SC_SpinBoxEditField:
if (spinbox->buttonSymbols == QAbstractSpinBox::NoButtons)