diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-21 20:30:01 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-21 21:01:03 +0200 |
commit | 22e0114d055b0ac6cdc47af2968b5dc742ba055a (patch) | |
tree | 7f168a5ac29b2e97b7c468af144cdba8487067eb /src/qt/overviewpage.h | |
parent | 623de12d040af89ff7c25de6eb0a19c67179dc5f (diff) | |
download | bitcoin-22e0114d055b0ac6cdc47af2968b5dc742ba055a.tar.xz |
qt: Choose monospaced font in C++ code rather in `*.ui` file
Setting the "Monospace" font family in a `*.ui` file does not work on
macOS, at least on Big Sur with Qt 5.15 (neither via the "font" property
nor via the "styleSheet" property). Qt chooses the ".AppleSystemUIFont"
instead of ".AppleSystemUIFontMonospaced".
This change makes macOS choose the correct monospaced font.
Diffstat (limited to 'src/qt/overviewpage.h')
-rw-r--r-- | src/qt/overviewpage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index 578ef601fb..5158c81678 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -61,6 +61,7 @@ private Q_SLOTS: void updateAlerts(const QString &warnings); void updateWatchOnlyLabels(bool showWatchOnly); void handleOutOfSyncWarningClicks(); + void setMonospacedFont(bool use_embedded_font); }; #endif // BITCOIN_QT_OVERVIEWPAGE_H |