summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-03-18 16:44:27 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-03-18 16:51:28 (GMT)
commitdc57f977ed8334530ef0da7e585eec7daef304eb (patch)
tree77cd0ade78067c2079394a68aedd4a4b071aaabe
parent81a32769389052696fed414af3b6602c90fc4c89 (diff)
downloadQt-dc57f977ed8334530ef0da7e585eec7daef304eb.zip
Qt-dc57f977ed8334530ef0da7e585eec7daef304eb.tar.gz
Qt-dc57f977ed8334530ef0da7e585eec7daef304eb.tar.bz2
fix PM_TabBarScrollButtonWidth pixel metric in Windows mobile style
Task-number: QTBUG-8757 Reviewed-by: thartman
-rw-r--r--src/gui/styles/qwindowsmobilestyle.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/styles/qwindowsmobilestyle.cpp b/src/gui/styles/qwindowsmobilestyle.cpp
index 6e77409..a5da038 100644
--- a/src/gui/styles/qwindowsmobilestyle.cpp
+++ b/src/gui/styles/qwindowsmobilestyle.cpp
@@ -6949,10 +6949,11 @@ int QWindowsMobileStyle::pixelMetric(PixelMetric pm, const QStyleOption *opt, co
case PM_SliderThickness:
ret = d->doubleControls ? windowsMobileSliderThickness * 2: windowsMobileSliderThickness;
break;
- case PM_TabBarScrollButtonWidth:
- ret = d->doubleControls ? 14 * 2 : 18;
- case PM_CheckBoxLabelSpacing:
- case PM_RadioButtonLabelSpacing:
+ case PM_TabBarScrollButtonWidth:
+ ret = d->doubleControls ? 14 * 2 : 18;
+ break;
+ case PM_CheckBoxLabelSpacing:
+ case PM_RadioButtonLabelSpacing:
ret = d->doubleControls ? 6 * 2 : 6;
break;
// Returns the number of pixels to use for the business part of the