Mercurial > projects > qtd
comparison qt/qtd/MetaMarshall.d @ 293:8627891e4556 signals
QList updates
author | eldar |
---|---|
date | Fri, 13 Nov 2009 19:09:28 +0000 |
parents | 19498f420252 |
children | 55ee4603365d |
comparison
equal
deleted
inserted
replaced
292:19498f420252 | 293:8627891e4556 |
---|---|
5 template isQObjectType(T) // is a QObject type that belongs to the library | 5 template isQObjectType(T) // is a QObject type that belongs to the library |
6 { | 6 { |
7 enum isQObjectType = is(T.__isQObjectType); | 7 enum isQObjectType = is(T.__isQObjectType); |
8 } | 8 } |
9 | 9 |
10 template isObjectType(T) // is a QObject type that belongs to the library | 10 template isObjectType(T) // is a Qt Object type that belongs to the library |
11 { | 11 { |
12 enum isObjectType = is(T.__isObjectType); | 12 enum isObjectType = is(T.__isObjectType); |
13 } | 13 } |
14 | 14 |
15 template isValueType(T) // is a QObject type that belongs to the library | 15 template isValueType(T) // is a Qt Value type that belongs to the library |
16 { | 16 { |
17 enum isQObjectType = is(typeof(mixin("T." ~ "__isValueType"))); | 17 enum isValueType = is(T.__isValueType); |
18 } | 18 } |
19 | 19 |
20 template isNativeType(T) // type that doesn't require conversion i.e. is the same in C++ and D | 20 template isNativeType(T) // type that doesn't require conversion i.e. is the same in C++ and D |
21 { | 21 { |
22 enum isNativeType = isNumeric!T || is(T == bool); | 22 enum isNativeType = isNumeric!T || is(T == bool); |