diff options
Diffstat (limited to 'common/query.h')
-rw-r--r-- | common/query.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/query.h b/common/query.h index e77bfd9..0bc5141 100644 --- a/common/query.h +++ b/common/query.h | |||
@@ -127,6 +127,12 @@ public: | |||
127 | mType = type; | 127 | mType = type; |
128 | } | 128 | } |
129 | 129 | ||
130 | template<typename T> | ||
131 | void setType() | ||
132 | { | ||
133 | setType(ApplicationDomain::getTypeName<T>()); | ||
134 | } | ||
135 | |||
130 | QByteArray type() const | 136 | QByteArray type() const |
131 | { | 137 | { |
132 | return mType; | 138 | return mType; |