25#include <QCoreApplication>
29#include <unordered_map>
50 using AssetMap = std::unordered_map<int, const char *>;
The KResourceHelper class is used to access resources.
Definition kresourcehelper.h:40
bool hasString(int id) const
virtual ~KResourceHelper()
QString asset(int id) const
QImage loadImage(int id) const
std::unordered_map< int, StringForTranslation > TranslationMap
Definition kresourcehelper.h:49
KResourceHelper(TranslationMap strings, AssetMap assets)
QPixmap loadPixmap(int id) const
TranslationMap m_strings
Definition kresourcehelper.h:71
std::unordered_map< int, const char * > AssetMap
Definition kresourcehelper.h:50
QString string(int id) const
AssetMap m_assets
Definition kresourcehelper.h:72
bool hasAsset(int id) const
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28
Definition kresourcehelper.h:45
const char * comment
Definition kresourcehelper.h:47
const char * source
Definition kresourcehelper.h:46