summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-03-25 12:01:34 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-03-25 12:03:21 (GMT)
commit32c6e01bf00bc45363685eb10c51e8b68b4fde89 (patch)
tree6cd28add7eb7498fe248be819c1bd5aadcfd595d /src/gui/styles/qs60style.cpp
parentd7fe2d90fe5a1ac5a29a5bc65eb5657d4d539563 (diff)
downloadQt-32c6e01bf00bc45363685eb10c51e8b68b4fde89.zip
Qt-32c6e01bf00bc45363685eb10c51e8b68b4fde89.tar.gz
Qt-32c6e01bf00bc45363685eb10c51e8b68b4fde89.tar.bz2
Fix for submenu placement for QMenus in Symbian.
Task-number: QTBUG-5992 Reviewed-By: Sami Merila
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 2c665fb..65191a4 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2389,13 +2389,6 @@ int QS60Style::pixelMetric(PixelMetric metric, const QStyleOption *option, const
if (metricValue == KNotFound)
metricValue = QCommonStyle::pixelMetric(metric, option, widget);
- if (metric == PM_SubMenuOverlap && widget) {
- const QMenu *menu = qobject_cast<const QMenu *>(widget);
- if (menu && menu->activeAction() && menu->activeAction()->menu()) {
- const int menuWidth = menu->activeAction()->menu()->sizeHint().width();
- metricValue = -menuWidth;
- }
- }
//if layout direction is mirrored, switch left and right border margins
if (option && option->direction == Qt::RightToLeft) {
if (metric == PM_LayoutLeftMargin)