Changeset 865 for trunk/src/gui/styles/qs60style.cpp
- Timestamp:
- May 16, 2011, 4:09:34 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.3 (added) merged: 864 /branches/vendor/nokia/qt/current merged: 863 /branches/vendor/nokia/qt/4.7.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/styles/qs60style.cpp
r846 r865 2644 2644 //native items have small empty areas at the beginning and end of menu item 2645 2645 sz.setWidth(sz.width() + 2 * pixelMetric(PM_MenuHMargin) + 2 * QS60StylePrivate::pixelMetric(PM_FrameCornerWidth)); 2646 if (QS60StylePrivate::isTouchSupported()) 2646 if (QS60StylePrivate::isTouchSupported()) { 2647 2647 //Make itemview easier to use in touch devices 2648 sz.setHeight(sz.height() + 2 * pixelMetric(PM_FocusFrameVMargin)); 2648 2649 //QCommonStyle does not adjust height with horizontal margin, it only adjusts width 2649 sz.setHeight(sz.height() + 2 * pixelMetric(PM_FocusFrameVMargin) - 8); //QCommonstyle adds 8 to height that this style handles through PM values 2650 if (ct == CT_MenuItem) 2651 sz.setHeight(sz.height() - 8); //QCommonstyle adds 8 to height that this style handles through PM values 2652 } 2650 2653 break; 2651 2654 #ifndef QT_NO_COMBOBOX
Note:
See TracChangeset
for help on using the changeset viewer.