mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:30:06 +00:00
Initialize Qt application fonts from cached versions on filesystem
This commit is contained in:
parent
7af2edd3ec
commit
fe1acb32cf
6 changed files with 28 additions and 26 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "update_dialog.hpp"
|
||||
#include "ui_update_dialog.h"
|
||||
#include <scwx/qt/main/versions.hpp>
|
||||
#include <scwx/qt/manager/resource_manager.hpp>
|
||||
#include <scwx/qt/manager/font_manager.hpp>
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QFontDatabase>
|
||||
|
|
@ -30,7 +30,7 @@ UpdateDialog::UpdateDialog(QWidget* parent) :
|
|||
ui->setupUi(this);
|
||||
|
||||
int titleFontId =
|
||||
manager::ResourceManager::FontId(types::Font::din1451alt_g);
|
||||
manager::FontManager::Instance().GetFontId(types::Font::din1451alt_g);
|
||||
QString titleFontFamily =
|
||||
QFontDatabase::applicationFontFamilies(titleFontId).at(0);
|
||||
QFont titleFont(titleFontFamily, 12);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue