diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-05-24 11:12:47 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-18 19:53:55 +0200 |
commit | 9d5b5c3a2d273ae8be57592395e0d32bff63c56e (patch) | |
tree | 9686ba21c62c21faf129ca71bc8ff177a2014bac /src/qt/guiutil.cpp | |
parent | bd65d70dbcb1af6ff539683c3767920f5f19f919 (diff) | |
download | bitcoin-9d5b5c3a2d273ae8be57592395e0d32bff63c56e.tar.xz |
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.
Rebased-From: e9df7f8
Rebased-By: Wladimir J. van der Laan
Diffstat (limited to 'src/qt/guiutil.cpp')
-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 4aeffbaf02..183fcac4a0 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; } |