Ignore:
Timestamp:
May 16, 2011, 4:09:34 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qs60style.cpp

    r846 r865  
    26442644            //native items have small empty areas at the beginning and end of menu item
    26452645            sz.setWidth(sz.width() + 2 * pixelMetric(PM_MenuHMargin) + 2 * QS60StylePrivate::pixelMetric(PM_FrameCornerWidth));
    2646             if (QS60StylePrivate::isTouchSupported())
     2646            if (QS60StylePrivate::isTouchSupported()) {
    26472647                //Make itemview easier to use in touch devices
     2648                sz.setHeight(sz.height() + 2 * pixelMetric(PM_FocusFrameVMargin));
    26482649                //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            }
    26502653            break;
    26512654#ifndef QT_NO_COMBOBOX
Note: See TracChangeset for help on using the changeset viewer.