diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-01 09:12:40 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-09-01 09:12:40 (GMT) |
commit | 408c2d9d6279b5c69c3e4ba0663ec36ddd3d5542 (patch) | |
tree | 6ec0e88211d283dbe265302b598528bf9d328d6b /src/gui | |
parent | 7b6028276cf5de1ffd5ab8d6dede7cca12e906fd (diff) | |
parent | 1f5d88dd327be635966ed9e3811c8803a163b2a4 (diff) | |
download | Qt-408c2d9d6279b5c69c3e4ba0663ec36ddd3d5542.zip Qt-408c2d9d6279b5c69c3e4ba0663ec36ddd3d5542.tar.gz Qt-408c2d9d6279b5c69c3e4ba0663ec36ddd3d5542.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
Fix some missing proxy calles for CleanLooks
Destroy QNetworkConfigurationManager global static from qApp dtor.
Fix EasyWLAN handling.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qcleanlooksstyle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/styles/qcleanlooksstyle.cpp b/src/gui/styles/qcleanlooksstyle.cpp index ada5293..306219d 100644 --- a/src/gui/styles/qcleanlooksstyle.cpp +++ b/src/gui/styles/qcleanlooksstyle.cpp @@ -2157,7 +2157,7 @@ void QCleanlooksStyle::drawControl(ControlElement element, const QStyleOption *o } if (button->features & QStyleOptionButton::HasMenu) - ir = ir.adjusted(0, 0, -pixelMetric(PM_MenuButtonIndicator, button, widget), 0); + ir = ir.adjusted(0, 0, -proxy()->pixelMetric(PM_MenuButtonIndicator, button, widget), 0); proxy()->drawItemText(painter, ir, tf, button->palette, (button->state & State_Enabled), button->text, QPalette::ButtonText); } @@ -4014,8 +4014,8 @@ QRect QCleanlooksStyle::subControlRect(ComplexControl control, const QStyleOptio switch (subControl) { case SC_SliderHandle: { if (slider->orientation == Qt::Horizontal) { - rect.setHeight(pixelMetric(PM_SliderThickness)); - rect.setWidth(pixelMetric(PM_SliderLength)); + rect.setHeight(proxy()->pixelMetric(PM_SliderThickness)); + rect.setWidth(proxy()->pixelMetric(PM_SliderLength)); int centerY = slider->rect.center().y() - rect.height() / 2; if (slider->tickPosition & QSlider::TicksAbove) centerY += tickSize; @@ -4023,8 +4023,8 @@ QRect QCleanlooksStyle::subControlRect(ComplexControl control, const QStyleOptio centerY -= tickSize; rect.moveTop(centerY); } else { - rect.setWidth(pixelMetric(PM_SliderThickness)); - rect.setHeight(pixelMetric(PM_SliderLength)); + rect.setWidth(proxy()->pixelMetric(PM_SliderThickness)); + rect.setHeight(proxy()->pixelMetric(PM_SliderLength)); int centerX = slider->rect.center().x() - rect.width() / 2; if (slider->tickPosition & QSlider::TicksAbove) centerX += tickSize; |