mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Optimize mode button layout for 4K screens.
This commit is contained in:
parent
e575005291
commit
219c04f5a4
@ -750,7 +750,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
|
|
||||||
// ensure a balanced layout of the mode buttons
|
// ensure a balanced layout of the mode buttons
|
||||||
qreal pointSize = m_config.text_font().pointSizeF();
|
qreal pointSize = m_config.text_font().pointSizeF();
|
||||||
if (pointSize < 12) {
|
if (pointSize < 11) {
|
||||||
ui->houndButton->setMaximumWidth(40);
|
ui->houndButton->setMaximumWidth(40);
|
||||||
ui->ft8Button->setMaximumWidth(40);
|
ui->ft8Button->setMaximumWidth(40);
|
||||||
ui->ft4Button->setMaximumWidth(40);
|
ui->ft4Button->setMaximumWidth(40);
|
||||||
@ -758,12 +758,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
ui->q65Button->setMaximumWidth(40);
|
ui->q65Button->setMaximumWidth(40);
|
||||||
ui->jt65Button->setMaximumWidth(40);
|
ui->jt65Button->setMaximumWidth(40);
|
||||||
} else {
|
} else {
|
||||||
ui->houndButton->setMinimumWidth(0);
|
ui->houndButton->setMinimumWidth(50);
|
||||||
ui->ft8Button->setMinimumWidth(0);
|
ui->ft8Button->setMinimumWidth(50);
|
||||||
ui->ft4Button->setMinimumWidth(0);
|
ui->ft4Button->setMinimumWidth(50);
|
||||||
ui->msk144Button->setMinimumWidth(0);
|
ui->msk144Button->setMinimumWidth(50);
|
||||||
ui->q65Button->setMinimumWidth(0);
|
ui->q65Button->setMinimumWidth(50);
|
||||||
ui->jt65Button->setMinimumWidth(0);
|
ui->jt65Button->setMinimumWidth(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
// hook up save WAV file exit handling
|
// hook up save WAV file exit handling
|
||||||
|
Loading…
Reference in New Issue
Block a user