Set minimum width to 0 on MacOS, and limit maximum width to 40 also on Linux.

This commit is contained in:
Uwe Risse 2022-04-04 17:07:50 +02:00
parent 8a6a8e8bdf
commit ec1e521ba7

View File

@ -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<QString>::finished, [this] {