mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +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 "about_dialog.hpp" | ||||
| #include "ui_about_dialog.h" | ||||
| #include <scwx/qt/main/versions.hpp> | ||||
| #include <scwx/qt/manager/resource_manager.hpp> | ||||
| #include <scwx/qt/manager/font_manager.hpp> | ||||
| 
 | ||||
| #include <QFontDatabase> | ||||
| 
 | ||||
|  | @ -27,7 +27,7 @@ AboutDialog::AboutDialog(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, 14); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat