From fb76118309bdba4003eaec6917dcf8ed5d82cceb Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 3 May 2017 23:32:51 +0300 Subject: [PATCH] Set application attributes before QApplication --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 85e5f545..867ed204 100644 --- a/src/main.cc +++ b/src/main.cc @@ -23,14 +23,14 @@ int main(int argc, char *argv[]) { - QApplication app(argc, argv); - QCoreApplication::setApplicationName("nheko"); QCoreApplication::setApplicationVersion("Ωμέγa"); QCoreApplication::setOrganizationName("Nheko"); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication app(argc, argv); + QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Regular.ttf"); QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Italic.ttf"); QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Bold.ttf");