28Resource::Resource(
int resourceId,
const QString &type,
const QString &name,
const QString &filename,
const QImage &image, QObject *parent)
59 d->type = rhs.
d->type;
60 d->name = rhs.
d->name;
61 d->filename = rhs.
d->filename;
62 d->image = rhs.
d->image;
67 return (
d->id == other.
d->id);
float value(const T *src, size_t ch)
KoResourceSP resourceForId(int resourceId)
resourceForId returns the resource with the given id, or 0 if no such resource exists....
static KisResourceLocator * instance()
Resource(int resourceId, const QString &type, const QString &name, const QString &filename, const QImage &image, QObject *parent=0)
QScopedPointer< Private > d
void setName(QString value)
bool operator==(const Resource &other) const
bool operator!=(const Resource &other) const
Resource operator=(const Resource &rhs)
KoResourceSP resource() const
void setImage(QImage image)