Qt: Fix monospace font in osx 10.9
The "Monospace" hint was added in Qt 4.8, and it works as intended as opposed to "TypeWriter" which fails to load a font.
This commit is contained in:
parent
7a419a61b6
commit
e9df7f8757
1 changed files with 4 additions and 0 deletions
|
@ -76,7 +76,11 @@ QString dateTimeStr(qint64 nTime)
|
|||
QFont bitcoinAddressFont()
|
||||
{
|
||||
QFont font("Monospace");
|
||||
#if QT_VERSION >= 0x040800
|
||||
font.setStyleHint(QFont::Monospace);
|
||||
#else
|
||||
font.setStyleHint(QFont::TypeWriter);
|
||||
#endif
|
||||
return font;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue