Enable high DPI pixmap support in all applications
This commit is contained in:
parent
ad6f040881
commit
0c34b456f0
|
@ -8,8 +8,8 @@ set(META_APP_AUTHOR "Martchus")
|
|||
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
|
||||
set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
|
||||
set(META_VERSION_MAJOR 5)
|
||||
set(META_VERSION_MINOR 5)
|
||||
set(META_VERSION_PATCH 1)
|
||||
set(META_VERSION_MINOR 6)
|
||||
set(META_VERSION_PATCH 0)
|
||||
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
||||
|
||||
# add project files
|
||||
|
|
|
@ -18,7 +18,8 @@ QT_FORWARD_DECLARE_CLASS(QSettings)
|
|||
QCoreApplication::setOrganizationName(QStringLiteral(APP_AUTHOR)); \
|
||||
QCoreApplication::setOrganizationDomain(QStringLiteral(APP_URL)); \
|
||||
QCoreApplication::setApplicationName(QStringLiteral(APP_NAME)); \
|
||||
QCoreApplication::setApplicationVersion(QStringLiteral(APP_VERSION))
|
||||
QCoreApplication::setApplicationVersion(QStringLiteral(APP_VERSION)); \
|
||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true)
|
||||
|
||||
/*!
|
||||
* \brief Loads translations for Qt, other dependencies and the application.
|
||||
|
|
Loading…
Reference in New Issue