diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 08:25:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 08:25:18 +0200 |
commit | d6a01b3f82d626856001356c0875aa738a0346ac (patch) | |
tree | d77a6000e9d53be7844d72697496efa093b5f8ad /common/domain | |
parent | 48ba18c92eede967afc4cf8894a3b06fd6a3c179 (diff) | |
download | sink-d6a01b3f82d626856001356c0875aa738a0346ac.tar.gz sink-d6a01b3f82d626856001356c0875aa738a0346ac.zip |
Support for subqueries.
This allows us to match properties from a subquery.
Unfortunately this also means that DataStoreQuery needs access to all
type implementations to issue the subquery (for potentially another type).
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 8b96758..2c93639 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -74,6 +74,7 @@ | |||
74 | struct NAME { \ | 74 | struct NAME { \ |
75 | static constexpr const char *name = #LOWERCASENAME; \ | 75 | static constexpr const char *name = #LOWERCASENAME; \ |
76 | typedef QByteArray Type; \ | 76 | typedef QByteArray Type; \ |
77 | typedef ApplicationDomain::TYPE ReferenceType; \ | ||
77 | }; \ | 78 | }; \ |
78 | void set##NAME(const ApplicationDomain::TYPE &value) { setProperty(NAME::name, value); } \ | 79 | void set##NAME(const ApplicationDomain::TYPE &value) { setProperty(NAME::name, value); } \ |
79 | void set##NAME(const QByteArray &value) { setProperty(NAME::name, QVariant::fromValue(value)); } \ | 80 | void set##NAME(const QByteArray &value) { setProperty(NAME::name, QVariant::fromValue(value)); } \ |