qt: avoid hard-coding font names

They may not contain all necessary characters for a language
This commit is contained in:
Cory Fields 2015-01-16 16:27:12 -05:00
parent 52954e6efd
commit 73cd4edb4f

View file

@ -42,7 +42,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
QString copyrightText = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin Core developers")); QString copyrightText = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin Core developers"));
QString titleAddText = networkStyle->getTitleAddText(); QString titleAddText = networkStyle->getTitleAddText();
QString font = "Arial"; QString font = QApplication::font().toString();
// create a bitmap according to device pixelratio // create a bitmap according to device pixelratio
QSize splashSize(480*devicePixelRatio,320*devicePixelRatio); QSize splashSize(480*devicePixelRatio,320*devicePixelRatio);