diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-03-17 12:28:05 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-03-17 12:28:05 (GMT) |
commit | 4bec9a7dcb89e18b54a7bc3f5230b5a98611fd06 (patch) | |
tree | 13170c853a5c26e673c16b6a00a55104ab4b81a0 /util | |
parent | ceff979ce3c9401151acdcd53af872cefbaaa962 (diff) | |
download | Qt-4bec9a7dcb89e18b54a7bc3f5230b5a98611fd06.zip Qt-4bec9a7dcb89e18b54a7bc3f5230b5a98611fd06.tar.gz Qt-4bec9a7dcb89e18b54a7bc3f5230b5a98611fd06.tar.bz2 |
Set PM_MenuScrollerHeight to zero
Previously QS60Style didn't define a pixel metrics value for
PM_MenuScrollerHeight at all and value was fetched from qcommonstyle.
However, QS60Style didn't draw the CE_MenuScroller area at all, so
menuscrollers were layoutted and drawn. Thus, long menus were
left with a 'hole' in them.
With this fix, PM_MenuScrollerHeight is zero.
This is related to QT-2274.
Task-number: QT-2274
Reviewed-by: Alessandro Portale
Diffstat (limited to 'util')
-rw-r--r-- | util/s60pixelmetrics/pixel_metrics.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/s60pixelmetrics/pixel_metrics.cpp b/util/s60pixelmetrics/pixel_metrics.cpp index 93873fb..beb785e 100644 --- a/util/s60pixelmetrics/pixel_metrics.cpp +++ b/util/s60pixelmetrics/pixel_metrics.cpp @@ -1012,12 +1012,15 @@ TInt PixelMetrics::PixelMetricValue(QStyle::PixelMetric metric) value = PixelMetricTabValue(QStyle::PM_TabBarScrollButtonWidth, appWindow.Rect(), landscape); break; + case QStyle::PM_MenuScrollerHeight: + value = 0; + break; + // todo: re-check if these really are not available in s60 case QStyle::PM_MenuDesktopFrameWidth: // not needed in S60 - dislocates Menu both horizontally and vertically case QStyle::PM_HeaderMarkSize: // The size of the sort indicator in a header. Not in S60 case QStyle::PM_SpinBoxSliderHeight: // The height of the optional spin box slider. Not in S60 case QStyle::PM_HeaderMargin: // not in S60 - case QStyle::PM_MenuScrollerHeight: // not in S60 case QStyle::PM_MenuTearoffHeight: // not in S60 case QStyle::PM_DockWidgetFrameWidth: // not in S60 case QStyle::PM_DockWidgetSeparatorExtent: // not in S60 |