mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user