mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Reset CategorizedCombo filter when switching between non-TeX and TeX fonts
This commit is contained in:
parent
61cf165521
commit
b8969d2e9c
@ -539,6 +539,11 @@ void CategorizedCombo::reset()
|
|||||||
d->model_->clear();
|
d->model_->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CategorizedCombo::resetFilter()
|
||||||
|
{
|
||||||
|
d->resetFilter();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CategorizedCombo::updateCombo()
|
void CategorizedCombo::updateCombo()
|
||||||
{
|
{
|
||||||
|
@ -41,6 +41,8 @@ public:
|
|||||||
bool set(QString const & cc);
|
bool set(QString const & cc);
|
||||||
/// Reset the combobox.
|
/// Reset the combobox.
|
||||||
void reset();
|
void reset();
|
||||||
|
/// Reset the combobox filter.
|
||||||
|
void resetFilter();
|
||||||
/// Update combobox.
|
/// Update combobox.
|
||||||
void updateCombo();
|
void updateCombo();
|
||||||
/// Add Item to combo according to sorting settings from preferences
|
/// Add Item to combo according to sorting settings from preferences
|
||||||
|
@ -2333,6 +2333,7 @@ void GuiDocument::osFontsChanged(bool nontexfonts)
|
|||||||
int const font_sf_scale = fontModule->scaleSansSB->value();
|
int const font_sf_scale = fontModule->scaleSansSB->value();
|
||||||
int const font_tt_scale = fontModule->scaleTypewriterSB->value();
|
int const font_tt_scale = fontModule->scaleTypewriterSB->value();
|
||||||
|
|
||||||
|
// reset the filters
|
||||||
updateFontlist();
|
updateFontlist();
|
||||||
// store default format
|
// store default format
|
||||||
QString const dformat = outputModule->defaultFormatCO->itemData(
|
QString const dformat = outputModule->defaultFormatCO->itemData(
|
||||||
@ -2599,6 +2600,9 @@ void GuiDocument::updateTexFonts()
|
|||||||
|
|
||||||
void GuiDocument::updateFontlist()
|
void GuiDocument::updateFontlist()
|
||||||
{
|
{
|
||||||
|
fontModule->fontsRomanCO->resetFilter();
|
||||||
|
fontModule->fontsSansCO->resetFilter();
|
||||||
|
fontModule->fontsTypewriterCO->resetFilter();
|
||||||
fontModule->fontsRomanCO->clear();
|
fontModule->fontsRomanCO->clear();
|
||||||
fontModule->fontsSansCO->clear();
|
fontModule->fontsSansCO->clear();
|
||||||
fontModule->fontsTypewriterCO->clear();
|
fontModule->fontsTypewriterCO->clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user