added macros for setting application info provided in project file
This commit is contained in:
parent
6b7636dd3b
commit
65132e9781
|
@ -10,6 +10,16 @@ class QString;
|
||||||
class QStringList;
|
class QStringList;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
#define SET_APPLICATION_INFO \
|
||||||
|
QCoreApplication::setOrganizationName(QStringLiteral(APP_AUTHOR)); \
|
||||||
|
QCoreApplication::setOrganizationDomain(QStringLiteral(APP_URL)); \
|
||||||
|
QCoreApplication::setApplicationName(QStringLiteral(APP_NAME)); \
|
||||||
|
QCoreApplication::setApplicationVersion(QStringLiteral(APP_VERSION))
|
||||||
|
|
||||||
|
#define LOAD_TRANSLATIONS \
|
||||||
|
TranslationFiles::loadQtTranslationFile(); \
|
||||||
|
TranslationFiles::loadApplicationTranslationFile(QStringLiteral(PROJECT_NAME))
|
||||||
|
|
||||||
namespace QtUtilitiesResources {
|
namespace QtUtilitiesResources {
|
||||||
|
|
||||||
LIB_EXPORT void init();
|
LIB_EXPORT void init();
|
||||||
|
|
Loading…
Reference in New Issue