From f47270cea65545f946ff301014cb09bd5ff40261 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 24 May 2016 09:19:21 +0200 Subject: create macro --- common/domain/applicationdomaintype.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 1b0ae9d..c022cb4 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -32,6 +32,7 @@ typedef QSharedPointer Ptr; \ using Entity::Entity; \ virtual ~TYPE(); \ + static TYPE create(const QByteArray &resource) { return createEntity(resource); }; \ #define SINK_PROPERTY(TYPE, NAME, LOWERCASENAME) \ -- cgit v1.2.3