From f0c5b772df0a9d25e77a38a22d45d954b4b63807 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Fri, 14 Oct 2022 14:20:25 +0200 Subject: [PATCH] Revert "Improve the readability of the signal meter labeling at different font sizes." This reverts commit 0fd396c903b100083074b161497ab7186aa20a3e. --- widgets/mainwindow.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 79a4c25cd..a2ada0969 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -1389,16 +1389,8 @@ void MainWindow::set_application_font (QFont const& font) } } qApp->setStyleSheet (ss + "* {" + font_as_stylesheet (font) + '}'); - // ensure a balanced layout of the signal meter and the mode buttons + // ensure a balanced layout of the mode buttons qreal pointSize = m_config.text_font().pointSizeF(); - if (pointSize < 9) ui->signal_meter_widget->setMaximumWidth(50); - if (pointSize == 9) ui->signal_meter_widget->setMaximumWidth(53); - if (pointSize == 10) ui->signal_meter_widget->setMaximumWidth(56); - if (pointSize == 11) ui->signal_meter_widget->setMaximumWidth(59); - if (pointSize == 12) ui->signal_meter_widget->setMaximumWidth(62); - if (pointSize == 13) ui->signal_meter_widget->setMaximumWidth(65); - if (pointSize == 14) ui->signal_meter_widget->setMaximumWidth(70); - if (pointSize > 14) ui->signal_meter_widget->setMaximumWidth(75); if (pointSize < 11) { ui->houndButton->setMaximumWidth(40); ui->ft8Button->setMaximumWidth(40);