diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-03-31 09:47:53 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-03-31 09:47:53 (GMT) |
commit | 7ad2dfdc8e812b115a78742aa95d796cea16665a (patch) | |
tree | d5cc68a68c1eeca9751cb1eb54867045b6a65e90 /src/gui | |
parent | d75b10cf969c4d3b068d84bc650a76efcadc1012 (diff) | |
download | Qt-7ad2dfdc8e812b115a78742aa95d796cea16665a.zip Qt-7ad2dfdc8e812b115a78742aa95d796cea16665a.tar.gz Qt-7ad2dfdc8e812b115a78742aa95d796cea16665a.tar.bz2 |
QS60Style: Support menu separator (pt.2)
Additional fix for this task. Make the separator slightly less wide,
since on some themes the menu background border might be transparent
near the left and right borders.
Task-number: QTBUG-10054
Reviewed-by: Tomi Vihria
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index da1528e..3706033 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -2641,7 +2641,7 @@ QSize QS60Style::sizeFromContents(ContentsType ct, const QStyleOption *opt, case CT_ItemViewItem: if (const QStyleOptionMenuItem *menuItem = qstyleoption_cast<const QStyleOptionMenuItem *>(opt)) { if (menuItem->menuItemType == QStyleOptionMenuItem::Separator) { - sz = QSize(menuItem->rect.width(), 1); + sz = QSize(menuItem->rect.width() - 2 * pixelMetric(PM_MenuHMargin) - 2 * QS60StylePrivate::pixelMetric(PM_FrameCornerWidth), 1); break; } } |