summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-04-12 06:32:06 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-04-12 06:32:06 (GMT)
commitcd19ab9f306f777b495cceabaf57a6eeaf86a82a (patch)
tree773b9b53f846c038ccf6997dd7c5ab62fc2a814b /src/gui/styles
parent0f7a4790bb0e3435a02f8751a29dc06c1f88d8d5 (diff)
downloadQt-cd19ab9f306f777b495cceabaf57a6eeaf86a82a.zip
Qt-cd19ab9f306f777b495cceabaf57a6eeaf86a82a.tar.gz
Qt-cd19ab9f306f777b495cceabaf57a6eeaf86a82a.tar.bz2
Two QListView autotests do not pass on Symbian^3 releases
tst_QListView::taskQTBUG_2678_spacingAndWrappedText() fails because: QS60Style adds to the itemview item content size margins and empty space, which shouldn't be part of the content size. As a fix, remove these. taskQTBUG_435_deselectOnViewportClick() fails because: Sending a click to a selected itemview item, when it should be sent to below that specific one. It was using hardcoded (center + 20) and autotest assumed that this would be outside of first item. In S60 with touch support, the itemview items are rather tall (49 pixels). As a fix, autotest now uses calculated value, which ensures that click is sent to outside first item. Task-number: QT-4810 Reviewed-by: Tomi Vihria
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qs60style.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 585986d..91ac45e 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2664,8 +2664,6 @@ QSize QS60Style::sizeFromContents(ContentsType ct, const QStyleOption *opt,
}
}
sz = QCommonStyle::sizeFromContents( ct, opt, csz, widget);
- //native items have small empty areas at the beginning and end of menu item
- sz.setWidth(sz.width() + 2 * pixelMetric(PM_MenuHMargin) + 2 * QS60StylePrivate::pixelMetric(PM_FrameCornerWidth));
if (QS60StylePrivate::isTouchSupported()) {
//Make itemview easier to use in touch devices
sz.setHeight(sz.height() + 2 * pixelMetric(PM_FocusFrameVMargin));