mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
fix warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6806 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b94ed208a5
commit
f96545b498
@ -1,3 +1,7 @@
|
|||||||
|
2003-04-14 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* QPrefs.C: fix warning
|
||||||
|
|
||||||
2003-04-12 John Levon <levon@movementarian.org>
|
2003-04-12 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* ui/QExternalDialogBase.ui: fix tab order
|
* ui/QExternalDialogBase.ui: fix tab order
|
||||||
|
@ -325,8 +325,7 @@ findPos(std::vector<A> const & vec, A const & val)
|
|||||||
return std::distance(vec.begin(), it);
|
return std::distance(vec.begin(), it);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setComboxFont(QComboBox * cb, string const & family,
|
void setComboxFont(QComboBox * cb, string const & family, string const & foundry)
|
||||||
string const & foundry, QFont::StyleHint hint)
|
|
||||||
{
|
{
|
||||||
string const name = makeFontName(family, foundry);
|
string const name = makeFontName(family, foundry);
|
||||||
for (int i = 0; i < cb->count(); ++i) {
|
for (int i = 0; i < cb->count(); ++i) {
|
||||||
@ -506,11 +505,11 @@ void QPrefs::update_contents()
|
|||||||
QPrefScreenFontsModule * fontmod(dialog_->screenfontsModule);
|
QPrefScreenFontsModule * fontmod(dialog_->screenfontsModule);
|
||||||
|
|
||||||
setComboxFont(fontmod->screenRomanCO, rc.roman_font_name,
|
setComboxFont(fontmod->screenRomanCO, rc.roman_font_name,
|
||||||
rc.roman_font_foundry, QFont::Serif);
|
rc.roman_font_foundry);
|
||||||
setComboxFont(fontmod->screenSansCO, rc.sans_font_name,
|
setComboxFont(fontmod->screenSansCO, rc.sans_font_name,
|
||||||
rc.sans_font_foundry, QFont::SansSerif);
|
rc.sans_font_foundry);
|
||||||
setComboxFont(fontmod->screenTypewriterCO, rc.typewriter_font_name,
|
setComboxFont(fontmod->screenTypewriterCO, rc.typewriter_font_name,
|
||||||
rc.typewriter_font_foundry, QFont::TypeWriter);
|
rc.typewriter_font_foundry);
|
||||||
|
|
||||||
dialog_->select_roman(fontmod->screenRomanCO->currentText());
|
dialog_->select_roman(fontmod->screenRomanCO->currentText());
|
||||||
dialog_->select_sans(fontmod->screenSansCO->currentText());
|
dialog_->select_sans(fontmod->screenSansCO->currentText());
|
||||||
|
Loading…
Reference in New Issue
Block a user