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_versionChecker.setApp(synergyApp);
|
||||||
m_pLabelSynergyVersion->setText(m_versionChecker.getVersion());
|
m_pLabelSynergyVersion->setText(m_versionChecker.getVersion());
|
||||||
|
|
||||||
|
// change default size based on os
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
// fonts on mac are bigger, so window needs to be bigger.
|
|
||||||
QSize size(600, 350);
|
QSize size(600, 350);
|
||||||
setMaximumSize(size);
|
setMaximumSize(size);
|
||||||
setMinimumSize(size);
|
setMinimumSize(size);
|
||||||
resize(size);
|
resize(size);
|
||||||
|
#elif defined(Q_OS_LINUX)
|
||||||
|
QSize size(600, 300);
|
||||||
|
setMaximumSize(size);
|
||||||
|
setMinimumSize(size);
|
||||||
|
resize(size);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,10 +93,13 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
|
||||||
m_pElevateCheckBox->hide();
|
m_pElevateCheckBox->hide();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// change default size based on os
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
// fonts on mac are bigger, so window needs to be bigger.
|
|
||||||
resize(720, 550);
|
resize(720, 550);
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
|
#elif defined(Q_OS_LINUX)
|
||||||
|
resize(700, 530);
|
||||||
|
setMinimumSize(size());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue