Go to the documentation of this file.
13 #ifndef ASSETS_COLLECTION_WRAPPER_H
14 #define ASSETS_COLLECTION_WRAPPER_H
17 #include "../ResourcesManager.h"
25 collection->
each([&] (T *asset) {
37 virtual bool canDrop(
const QMimeData *,
int)
const override {
return true; }
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
AssetsCollectionWrapper(AssetWrapper *parent, const QString &name, AssetsCollection< T > *collection, ResourcesManager *resources, const QString &tip)
static const char * tipProperty
virtual bool canDrop(const QMimeData *, int) const override
virtual AssetWrapper * child(int index) override
void each(std::function< void(T *)> op)
virtual QString displayName() const
virtual int childIndex(AssetWrapper *child) override
virtual int childrenCount() const override
QVector< AssetWrapper * > myAssets
static bool compareByDisplayName(const AssetWrapper *left, const AssetWrapper *right)