diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-16 16:56:13 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-16 16:56:13 (GMT) |
commit | 60a37296cf553fbfb96afc90c7ce84cd386bc151 (patch) | |
tree | 8db9df5fe16a2bf549c0890b701ef1db901fa006 /src/gui/styles | |
parent | fac026f1f7f0eff03f8ca8e05d760d639aeabcaa (diff) | |
download | Qt-60a37296cf553fbfb96afc90c7ce84cd386bc151.zip Qt-60a37296cf553fbfb96afc90c7ce84cd386bc151.tar.gz Qt-60a37296cf553fbfb96afc90c7ce84cd386bc151.tar.bz2 |
Fixed QGtkStyle menu bars being one pixel too narrow
Probably due to the font height being reduced by one pixel earlier, the
menu bar now seems to need both pixels added by the QCleanLooks style.
Previously it was ignoring this and adding only one, resulting in a menu
bar that was one pixel too narrow compared to a real GTK one.
Reviewed-by: mae
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qgtkstyle.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp index 1c78a47..34c7ac8 100644 --- a/src/gui/styles/qgtkstyle.cpp +++ b/src/gui/styles/qgtkstyle.cpp @@ -3198,10 +3198,6 @@ QSize QGtkStyle::sizeFromContents(ContentsType type, const QStyleOption *option, } break; - case CT_MenuBarItem://cleanlooks adds 2 pixels - newSize = QWindowsStyle::sizeFromContents(type, option, size, widget) + QSize(0, 1); - break; - case CT_LineEdit: { GtkWidget *gtkEntry = d->gtkWidget(QLS("GtkEntry")); newSize = size + QSize(2*gtkEntry->style->xthickness, 2*gtkEntry->style->ythickness); |