mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
Fix compilation with Qt < 4.7
Thanks to jkulesza
This commit is contained in:
parent
4d9f2e740b
commit
e6d28aad0a
@ -2584,8 +2584,10 @@ QFont const GuiApplication::typewriterSystemFont()
|
||||
QFont font("monospace");
|
||||
#endif
|
||||
if (!isFixedPitch(font)) {
|
||||
#if QT_VERSION >= 0x040700
|
||||
// try to enforce a real monospaced font
|
||||
font.setStyleHint(QFont::Monospace);
|
||||
#endif
|
||||
if (!isFixedPitch(font)) {
|
||||
font.setStyleHint(QFont::TypeWriter);
|
||||
if (!isFixedPitch(font)) font.setFamily("courier");
|
||||
|
Loading…
x
Reference in New Issue
Block a user