added special default window sizes for linux as well as mac

This commit is contained in:
Nick Bolton 2012-07-30 16:11:28 +00:00
parent 01fe7027d3
commit 51be2bf51d
2 changed files with 12 additions and 4 deletions

View File

@ -30,11 +30,16 @@ AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) :
m_versionChecker.setApp(synergyApp);
m_pLabelSynergyVersion->setText(m_versionChecker.getVersion());
// change default size based on os
#if defined(Q_OS_MAC)
// fonts on mac are bigger, so window needs to be bigger.
QSize size(600, 350);
setMaximumSize(size);
setMinimumSize(size);
resize(size);
#elif defined(Q_OS_LINUX)
QSize size(600, 300);
setMaximumSize(size);
setMinimumSize(size);
resize(size);
#endif
}

View File

@ -93,10 +93,13 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
m_pElevateCheckBox->hide();
#endif
// change default size based on os
#if defined(Q_OS_MAC)
// fonts on mac are bigger, so window needs to be bigger.
resize(720, 550);
setMinimumSize(size());
#elif defined(Q_OS_LINUX)
resize(700, 530);
setMinimumSize(size());
#endif
}