From a3f9dfbe3bda60e09769f7a065f4dceea3ccef6e Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 22 Feb 2012 22:17:19 +0100 Subject: Fix initial size of QMainWindow with unified title and toolbar on Mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Mac if the toolbar was hidden in a unified title and toolbar main window then it would have too much space between the title and the central widget. Task-number: QTBUG-24423 Change-Id: I5e434da2447f33795f3771e43b42930824482d8e Reviewed-by: Morten Johan Sørvig --- src/gui/widgets/qmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp index ba6f783..a47ff8c 100644 --- a/src/gui/widgets/qmainwindow.cpp +++ b/src/gui/widgets/qmainwindow.cpp @@ -1443,9 +1443,9 @@ bool QMainWindow::event(QEvent *event) break; #ifdef Q_WS_MAC case QEvent::Show: + d->layout->blockVisiblityCheck = false; if (unifiedTitleAndToolBarOnMac()) d->layout->syncUnifiedToolbarVisibility(); - d->layout->blockVisiblityCheck = false; break; case QEvent::WindowStateChange: { -- cgit v0.12