diff qt/core/QTypeInfo.d @ 297:bc783e20da2b signals

share strange dmd
author eldar
date Sun, 22 Nov 2009 22:18:06 +0000
parents 5173835bb372
children adae77fdc1ea
line wrap: on
line diff
--- a/qt/core/QTypeInfo.d	Sun Nov 22 20:43:10 2009 +0000
+++ b/qt/core/QTypeInfo.d	Sun Nov 22 22:18:06 2009 +0000
@@ -20,6 +20,12 @@
 
 template QTypeInfo(T)
 {
+    static if(T.stringof == "QModelIndex")
+    {
+        pragma(msg, T.stringof ~ " has QTypeInfo");
+        pragma(msg, T.QTypeInfo.stringof);
+    }
+    
     static if(is(T == string))
     {
         alias QString.QTypeInfo QTypeInfo;
@@ -35,8 +41,9 @@
             isDummy = false
         }
     }
-    else static if(__traits(compiles, mixin("T.TypeInfo")))
+    else static if(is(T.QTypeInfo))
     {
+        pragma(msg, T.stringof ~ " has struct");
         alias T.QTypeInfo QTypeInfo; // alias member QTypeInfo
     }
     else static if ( isQObjectType!T || isObjectType!T )