From ec1e521ba7448384bcc203a1290b21c04f72063f Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Mon, 4 Apr 2022 17:07:50 +0200 Subject: [PATCH] Set minimum width to 0 on MacOS, and limit maximum width to 40 also on Linux. --- widgets/mainwindow.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index a83391636..a014cc37b 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -745,7 +745,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, } }); -#if defined(Q_OS_WIN) +#if !defined(Q_OS_MAC) // ensure a balanced layout of the mode buttons both on Windos and MacOS ui->houndButton->setMaximumWidth(40); ui->ft8Button->setMaximumWidth(40); @@ -755,6 +755,15 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, ui->jt65Button->setMaximumWidth(40); #endif +#if defined(Q_OS_MAC) + // ensure a balanced layout of the mode buttons both on Windos and MacOS + ui->houndButton->setMinimumWidth(0); + ui->ft8Button->setMinimumWidth(0); + ui->ft4Button->setMinimumWidth(0); + ui->msk144Button->setMinimumWidth(0); + ui->q65Button->setMinimumWidth(0); + ui->jt65Button->setMinimumWidth(0); +#endif // hook up save WAV file exit handling connect (&m_saveWAVWatcher, &QFutureWatcher::finished, [this] {