From 51be2bf51da36003d4daa93456da3bd838134dee Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 30 Jul 2012 16:11:28 +0000 Subject: [PATCH] added special default window sizes for linux as well as mac --- src/gui/src/AboutDialog.cpp | 7 ++++++- src/gui/src/MainWindow.cpp | 9 ++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/gui/src/AboutDialog.cpp b/src/gui/src/AboutDialog.cpp index d8019feb..cbf1090e 100644 --- a/src/gui/src/AboutDialog.cpp +++ b/src/gui/src/AboutDialog.cpp @@ -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 } diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 77e1b6d5..52eda08e 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -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 }