comparison qt/qtd/MetaMarshall.d @ 292:19498f420252 signals

more QList goodness
author eldar
date Tue, 10 Nov 2009 19:29:42 +0000
parents f9559a957be9
children 8627891e4556
comparison
equal deleted inserted replaced
291:0d2094800bdb 292:19498f420252
2 2
3 import std.traits; 3 import std.traits;
4 4
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(typeof(mixin("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 QObject type that belongs to the library
11 { 11 {
12 enum isQObjectType = is(typeof(mixin("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 QObject type that belongs to the library
16 { 16 {
17 enum isQObjectType = is(typeof(mixin("T." ~ "__isValueType"))); 17 enum isQObjectType = is(typeof(mixin("T." ~ "__isValueType")));