added special default window sizes for linux as well as mac
This commit is contained in:
parent
01fe7027d3
commit
51be2bf51d
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
resize(720, 550);
|
||||
setMinimumSize(size());
|
||||
#elif defined(Q_OS_LINUX)
|
||||
resize(700, 530);
|
||||
setMinimumSize(size());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue