summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-04-02 07:31:50 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-04-22 11:36:37 (GMT)
commita8d14ae567c7e847c6dbba644c36fbc6c6afc468 (patch)
tree08df810ad56d16766aaf3faadc67d5ea9d0014fa /src/gui/widgets
parent65398953e6ebaab177046b9516f15920b1f9d1a4 (diff)
downloadQt-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.mm4
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];
}
}