From 3fd0993a1ed483a96fa9bbb25a3af1a0a031ba43 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sun, 18 Nov 2012 16:39:44 +0000 Subject: [PATCH] Minor Fixups for Mac Native A couple of #ifdef Q_OS_MAC needed around bits of code that are Mac native. To support the Mac Native patch just applied. --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index ceff4b67b..9d1fa1d00 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -131,7 +131,9 @@ MainWindow::MainWindow(const QDir &home) : static const QIcon tileIcon(":images/toolbar/main/tile.png"); static const QIcon fullIcon(":images/toolbar/main/togglefull.png"); +#ifdef Q_OS_MAC static CocoaInitializer cocoaInitializer; // we only need one +#endif mainwindows.append(this); // add us to the list of open windows @@ -1237,8 +1239,10 @@ void MainWindow::resizeEvent(QResizeEvent*) { appsettings->setValue(GC_SETTINGS_MAIN_GEOM, geometry()); +#ifdef Q_OS_MAC head->updateGeometry(); repaint(); +#endif } void