From 27968f902a0b09b79d5198fae7783986c9b77f66 Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 3 Mar 2011 14:48:12 +0100 Subject: [PATCH] Fix window positioning in Carbon and Cocoa --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index aa45d4f..b80cbea 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -474,7 +474,11 @@ void MainWindow::readSettings() { restoreGeometry(settings.value("geometry").toByteArray()); #ifdef APP_MAC if (!isMaximized()) +#ifdef QT_MAC_USE_COCOA + move(x(), y() + 10); +#else move(x(), y() + mainToolBar->height() + 8); +#endif #endif setDefinitionMode(settings.value("definition", VideoDefinition::getDefinitionNames().first()).toString()); audioOutput->setVolume(settings.value("volume", 1).toDouble()); -- 2.39.5