From 8a6a8e8bdf3f2feccf3923b424115a1a8fc479b0 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Mon, 4 Apr 2022 16:18:10 +0200 Subject: [PATCH] Limit width of the mode buttons to 40 only for Windows. --- widgets/mainwindow.cpp | 11 +++++++++++ widgets/mainwindow.ui | 12 ++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index a4fce9831..a83391636 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -745,6 +745,17 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, } }); +#if defined(Q_OS_WIN) + // ensure a balanced layout of the mode buttons both on Windos and MacOS + ui->houndButton->setMaximumWidth(40); + ui->ft8Button->setMaximumWidth(40); + ui->ft4Button->setMaximumWidth(40); + ui->msk144Button->setMaximumWidth(40); + ui->q65Button->setMaximumWidth(40); + ui->jt65Button->setMaximumWidth(40); +#endif + + // hook up save WAV file exit handling connect (&m_saveWAVWatcher, &QFutureWatcher::finished, [this] { // extract the promise from the future diff --git a/widgets/mainwindow.ui b/widgets/mainwindow.ui index c4ddd6e5f..bc7a4fb73 100644 --- a/widgets/mainwindow.ui +++ b/widgets/mainwindow.ui @@ -2875,7 +2875,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215 @@ -2900,7 +2900,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215 @@ -2922,7 +2922,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215 @@ -2944,7 +2944,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215 @@ -2966,7 +2966,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215 @@ -2988,7 +2988,7 @@ QLabel[oob="true"] { - 40 + 16777215 16777215