mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-22 20:58:09 +02:00
qt: Add helper to load font
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user