#ifndef RESOURCES_H #define RESOURCES_H #include #include QT_BEGIN_NAMESPACE class QString; class QStringList; QT_END_NAMESPACE #define SET_QT_APPLICATION_INFO \ QCoreApplication::setOrganizationName(QStringLiteral(APP_AUTHOR)); \ QCoreApplication::setOrganizationDomain(QStringLiteral(APP_URL)); \ QCoreApplication::setApplicationName(QStringLiteral(APP_NAME)); \ QCoreApplication::setApplicationVersion(QStringLiteral(APP_VERSION)) #define LOAD_QT_TRANSLATIONS \ TranslationFiles::loadQtTranslationFile(); \ TranslationFiles::loadApplicationTranslationFile(QStringLiteral(PROJECT_NAME)) namespace QtUtilitiesResources { LIB_EXPORT void init(); LIB_EXPORT void cleanup(); } namespace TranslationFiles { LIB_EXPORT void loadQtTranslationFile(); LIB_EXPORT void loadApplicationTranslationFile(const QString &applicationName); LIB_EXPORT void loadApplicationTranslationFile(const QString &applicationName, const QString &localeName); } namespace ApplicationInstances { #if defined(GUI_QTWIDGETS) LIB_EXPORT bool hasWidgetsApp(); #endif #if defined(GUI_QTWIDGETS) || defined(GUI_QTQUICK) LIB_EXPORT bool hasGuiApp(); #endif LIB_EXPORT bool hasCoreApp(); } #endif // RESOURCES_H