Move set attribute to vabstractapplication

--HG--
branch : feature
This commit is contained in:
Benjamin Nauck 2016-01-02 17:06:19 +01:00
parent 9d3257ef1c
commit 6ffa9d0055
2 changed files with 3 additions and 3 deletions

View File

@ -541,9 +541,6 @@ void VApplication::InitOptions()
qDebug()<<"Command-line arguments:"<<this->arguments();
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
{
LoadTranslation(ValentinaSettings()->GetLocale());

View File

@ -69,6 +69,9 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv)
#endif // QT_VERSION < QT_VERSION_CHECK(5, 3, 0)
// Enable support for HiDPI bitmap resources
setAttribute(Qt::AA_UseHighDpiPixmaps);
connect(this, &QApplication::aboutToQuit, this, &VAbstractApplication::SyncSettings);
}