Revision 6d91d381
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
example/models/artikel.h | ||
---|---|---|
#include <QHash>
|
||
#include <QVariant>
|
||
|
||
class Artikel : virtual public CuteEntityManager::Entity {
|
||
class Artikel : public CuteEntityManager::Entity {
|
||
Q_OBJECT
|
||
Q_PROPERTY(double preis READ getPreis WRITE setPreis)
|
||
Q_PROPERTY(QString name READ getName WRITE setName)
|
||
... | ... | |
QString name;
|
||
|
||
public:
|
||
~Artikel();
|
||
explicit Artikel(QObject *parent = 0);
|
||
virtual ~Artikel();
|
||
Q_INVOKABLE Artikel();
|
||
Artikel(double preis, QString name);
|
||
double getPreis() const;
|
||
void setPreis(double value);
|
Auch abrufbar als: Unified diff
some bug fixes, caching works