Move set attribute to vabstractapplication
--HG-- branch : feature
This commit is contained in:
parent
9d3257ef1c
commit
6ffa9d0055
|
@ -541,9 +541,6 @@ 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());
|
||||||
|
|
|
@ -69,6 +69,9 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv)
|
||||||
|
|
||||||
#endif // QT_VERSION < QT_VERSION_CHECK(5, 3, 0)
|
#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);
|
connect(this, &QApplication::aboutToQuit, this, &VAbstractApplication::SyncSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user