diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-02 07:31:50 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-04-22 11:36:37 (GMT) |
commit | a8d14ae567c7e847c6dbba644c36fbc6c6afc468 (patch) | |
tree | 08df810ad56d16766aaf3faadc67d5ea9d0014fa /src/gui/widgets | |
parent | 65398953e6ebaab177046b9516f15920b1f9d1a4 (diff) | |
download | Qt-a8d14ae567c7e847c6dbba644c36fbc6c6afc468.zip Qt-a8d14ae567c7e847c6dbba644c36fbc6c6afc468.tar.gz Qt-a8d14ae567c7e847c6dbba644c36fbc6c6afc468.tar.bz2 |
Work on getting unified toolbars to look more native.
Basically we try to get the toggled look correct and we've shrunk the
size of the toolbar by a good 10 pixels. We still look a bit "off" for
toggled on Tiger, but frankely that look is a bit odd.
We are a bit taller than the pure Cocoa toolbar (2 px), but given that
we are embedding our QToolbar, that's probably the best we can do.
All-in-all, it looks much better.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qmainwindowlayout_mac.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qmainwindowlayout_mac.mm b/src/gui/widgets/qmainwindowlayout_mac.mm index c807afb..53e1ad5 100644 --- a/src/gui/widgets/qmainwindowlayout_mac.mm +++ b/src/gui/widgets/qmainwindowlayout_mac.mm @@ -502,11 +502,11 @@ void QMainWindowLayout::fixSizeInUnifiedToolbar(QToolBar *tb) const QMacCocoaAutoReleasePool pool; QWidgetItem layoutItem(tb); QSize size = layoutItem.maximumSize(); - NSSize nssize = NSMakeSize(size.width(), size.height()); + NSSize nssize = NSMakeSize(size.width(), size.height() - 2); [item setMaxSize:nssize]; size = layoutItem.minimumSize(); nssize.width = size.width(); - nssize.height = size.height(); + nssize.height = size.height() - 2; [item setMinSize:nssize]; } } |