diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2021-10-06 15:06:40 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2021-10-07 17:01:21 +0100 |
commit | d54ec27bac388d7b84cf7b6cb4506bb0c25f2f88 (patch) | |
tree | 9974c849a4b5745b8f51dfd1a13d868a0c5e98ee /src/qt/guiutil.cpp | |
parent | c0b6c96eee7c9e24b78935516225259e61cdabf7 (diff) | |
download | bitcoin-d54ec27bac388d7b84cf7b6cb4506bb0c25f2f88.tar.xz |
qt: Add helper to load font
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 7b1384b485..12d3a48d01 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -272,6 +272,12 @@ bool hasEntryData(const QAbstractItemView *view, int column, int role) return !selection.at(0).data(role).toString().isEmpty(); } +void LoadFont(const QString& file_name) +{ + const int id = QFontDatabase::addApplicationFont(file_name); + assert(id != -1); +} + QString getDefaultDataDirectory() { return boostPathToQString(GetDefaultDataDir()); |