mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Backport GuiFontLoader deprecation warning fixes
This commit is contained in:
parent
aad8804549
commit
85ece5fb3d
@ -226,6 +226,7 @@ QFont symbolFont(QString const & family, bool * ok)
|
||||
return font;
|
||||
}
|
||||
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||
// A simple setFamily() fails on Qt 2
|
||||
|
||||
QString const raw = rawName(family);
|
||||
@ -237,6 +238,7 @@ QFont symbolFont(QString const & family, bool * ok)
|
||||
*ok = true;
|
||||
return font;
|
||||
}
|
||||
#endif
|
||||
|
||||
LYXERR_NOPOS(Debug::FONT, " FAILED :-(");
|
||||
*ok = false;
|
||||
@ -370,7 +372,9 @@ QFont makeQFont(FontInfo const & f)
|
||||
else
|
||||
LYXERR(Debug::FONT, "This font is NOT an exact match");
|
||||
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||
LYXERR(Debug::FONT, "XFLD: " << font.rawName());
|
||||
#endif
|
||||
|
||||
font.setPointSizeF(f.realSize() * lyxrc.currentZoom / 100.0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user