Enable high dpi

This commit is contained in:
Konstantinos Sideris 2017-05-01 16:03:42 +03:00
parent 4a7b005c64
commit e3acb533ad

View file

@ -28,6 +28,8 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationName("nheko");
QCoreApplication::setApplicationVersion("Ωμέγa");
QCoreApplication::setOrganizationName("Nheko");
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/fonts/OpenSans/OpenSans-Italic.ttf");