diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-09 05:22:01 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-09 05:22:01 (GMT) |
commit | 0eff2621a818d3690a5c536b35df079b23be6a84 (patch) | |
tree | 5db86a7a3e135282e19b0d3b13c0984e966b08c5 /src/gui/widgets/qmainwindow.cpp | |
parent | 67c465988a45d1f0a5d9dce3c03ad544a6e24cfe (diff) | |
parent | 88eaabd88187178a737ea9476463f20f68087a52 (diff) | |
download | Qt-0eff2621a818d3690a5c536b35df079b23be6a84.zip Qt-0eff2621a818d3690a5c536b35df079b23be6a84.tar.gz Qt-0eff2621a818d3690a5c536b35df079b23be6a84.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Experimental support of the unified toolbar with
Diffstat (limited to 'src/gui/widgets/qmainwindow.cpp')
-rw-r--r-- | src/gui/widgets/qmainwindow.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp index 4ca11b0..861cfaa 100644 --- a/src/gui/widgets/qmainwindow.cpp +++ b/src/gui/widgets/qmainwindow.cpp @@ -1516,14 +1516,19 @@ void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set) if (!isWindow() || d->useHIToolBar == set || QSysInfo::MacintoshVersion < QSysInfo::MV_10_3) return; - // ### Disable the unified toolbar when using anything but the native graphics system. - // ### Disable when using alien widgets as well - if (windowSurface() || testAttribute(Qt::WA_NativeWindow) == false) + // ### Disable when using alien widgets + if (testAttribute(Qt::WA_NativeWindow) == false) { return; + } d->useHIToolBar = set; createWinId(); // We need the hiview for down below. + // Activate the unified toolbar with the raster engine. + if (windowSurface()) { + d->layout->unifiedSurface = new QUnifiedToolbarSurface(this); + } + d->layout->updateHIToolBarStatus(); // Enabling the unified toolbar clears the opaque size grip setting, update it. d->macUpdateOpaqueSizeGrip(); |