Add support for high dpi bitmap resources

--HG--
branch : feature
This commit is contained in:
Benjamin Nauck 2016-01-02 02:40:33 +01:00
parent 6115b02b5b
commit c57201fe82

View File

@ -541,6 +541,9 @@ void VApplication::InitOptions()
qDebug()<<"Command-line arguments:"<<this->arguments(); qDebug()<<"Command-line arguments:"<<this->arguments();
qDebug()<<"Process ID:"<<this->applicationPid(); qDebug()<<"Process ID:"<<this->applicationPid();
// Enable support for HiDPI bitmap resources
setAttribute(Qt::AA_UseHighDpiPixmaps);
if (VApplication::IsGUIMode())// By default console version uses system locale if (VApplication::IsGUIMode())// By default console version uses system locale
{ {
LoadTranslation(ValentinaSettings()->GetLocale()); LoadTranslation(ValentinaSettings()->GetLocale());