diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-05-24 11:12:47 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-05-24 11:13:39 -0400 |
commit | e9df7f87574b32d70aec2dad5f8d84a68c618dee (patch) | |
tree | 82cc6dd899e66e6ad274aa61ff370935becce128 /src | |
parent | 7a419a61b6e357229620ade1e459b8e437fa86c8 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/guiutil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 7b264d27c7..49c0867450 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -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; } |