Limit width of the mode buttons to 40 only for Windows.

This commit is contained in:
Uwe Risse 2022-04-04 16:18:10 +02:00
parent 1068988bf1
commit 8a6a8e8bdf
2 changed files with 17 additions and 6 deletions

View File

@ -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<QString>::finished, [this] {
// extract the promise from the future

View File

@ -2875,7 +2875,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -2900,7 +2900,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -2922,7 +2922,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -2944,7 +2944,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -2966,7 +2966,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
@ -2988,7 +2988,7 @@ QLabel[oob=&quot;true&quot;] {
</property>
<property name="maximumSize">
<size>
<width>40</width>
<width>16777215</width>
<height>16777215</height>
</size>
</property>