diff -r 89e065397ea6 -r e24348a560a6 src/qt3support/widgets/q3spinwidget.cpp --- a/src/qt3support/widgets/q3spinwidget.cpp Thu May 27 13:40:48 2010 +0300 +++ b/src/qt3support/widgets/q3spinwidget.cpp Fri Jun 11 14:24:45 2010 +0300 @@ -340,11 +340,13 @@ QPainter p(this); QStyleOptionSpinBox opt = getStyleOption(this); - if (d->theButton & 1) + if (d->theButton & 1) { opt.activeSubControls = QStyle::SC_SpinBoxDown; - else if (d->theButton & 2) + opt.state |= QStyle::State_Sunken; + } else if (d->theButton & 2) { opt.activeSubControls = QStyle::SC_SpinBoxUp; - else + opt.state |= QStyle::State_Sunken; + } else opt.activeSubControls = QStyle::SC_None; opt.rect = style()->subControlRect(QStyle::CC_SpinBox, &opt, QStyle::SC_SpinBoxFrame, this); opt.subControls = QStyle::SC_All;