Mercurial > projects > qtd
diff qt/core/QTypeInfo.d @ 296:5173835bb372 signals
iteration over QList with opApply
author | eldar |
---|---|
date | Sun, 22 Nov 2009 20:43:10 +0000 |
parents | 463563fc9e17 |
children | bc783e20da2b |
line wrap: on
line diff
--- a/qt/core/QTypeInfo.d Sun Nov 22 11:01:19 2009 +0000 +++ b/qt/core/QTypeInfo.d Sun Nov 22 20:43:10 2009 +0000 @@ -9,6 +9,7 @@ import std.traits; import qt.qtd.MetaMarshall; +import qt.core.QString; bool qIsDetached(T)(ref T) { return true; } @@ -19,7 +20,11 @@ template QTypeInfo(T) { - static if(isBasicType!T) + static if(is(T == string)) + { + alias QString.QTypeInfo QTypeInfo; + } + else static if(isBasicType!T) { public enum {