fix: Size of the font combo box in the font list editing dialog is too little.

This commit is contained in:
Roy Qu 2024-03-20 19:34:08 +08:00
parent 96c606c221
commit 94f4587461
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ void EditorFontDialog::on_chkMonoOnly_toggled(bool checked)
QString savedFont = ui->fontComboBox->currentFont().family(); QString savedFont = ui->fontComboBox->currentFont().family();
ui->fontComboBox->setFontFilters(checked ? QFontComboBox::MonospacedFonts : QFontComboBox::AllFonts); ui->fontComboBox->setFontFilters(checked ? QFontComboBox::MonospacedFonts : QFontComboBox::AllFonts);
ui->fontComboBox->setCurrentFont(QFont(savedFont)); ui->fontComboBox->setCurrentFont(QFont(savedFont));
ui->fontComboBox->adjustSize();
} }

View File

@ -18,7 +18,7 @@
<widget class="QFontComboBox" name="fontComboBox"> <widget class="QFontComboBox" name="fontComboBox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>