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.
This commit is contained in:
Mark Liversedge
2012-11-18 16:39:44 +00:00
parent 880a3b6725
commit 3fd0993a1e

View File

@@ -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