UI Nits: Geometry and setUnifiedTitleAndToolBar

The restore / set geometry for the config dialog and mainwindow
was 'adjusted' by setUnifiedTitleAndToolBarOnMac. This meant
that when restoring geometry at startup the window would gradually
decrease in size (by roughly 42 pixels).
This commit is contained in:
Mark Liversedge
2012-12-10 08:51:41 +00:00
parent 9b0b193ed3
commit a520da1f2a
2 changed files with 9 additions and 7 deletions

View File

@@ -17,9 +17,9 @@ ConfigDialog::ConfigDialog(QDir _home, Zones *_zones, MainWindow *mainWindow) :
setAttribute(Qt::WA_DeleteOnClose);
#ifdef Q_OS_MAC
setUnifiedTitleAndToolBarOnMac(true);
QToolBar *head = addToolBar("Preferences");
setFixedSize(525,600);
setFixedSize(525,540);
setUnifiedTitleAndToolBarOnMac(true);
#else
QToolBar *head = addToolBar("Options");
head->setMovable(false); // oops!