diff mini/test1/main.d @ 362:bcbfffef4f9e

Undecorated D types can be registered with Qt
author Max Samukha <maxter@maxter.com>
date Wed, 09 Jun 2010 16:37:24 +0300
parents beaf4a2974d7
children 185df9220ea7
line wrap: on
line diff
--- a/mini/test1/main.d	Wed Jun 09 11:08:56 2010 +0300
+++ b/mini/test1/main.d	Wed Jun 09 16:37:24 2010 +0300
@@ -27,36 +27,4 @@
 
 void main(string[] args)
 {
-    int id = qRegisterMetaType!A();
-    qRegisterMetaTypeStreamOperators!A();
-
-    foreach (i; 0..10)
-    {
-        writeln("Iter ", i);
-
-        void foo(int x, int y, int z)
-        {
-            auto a = new A("A" ~ to!string(i));
-            auto b = cast(A)QMetaType.construct(id, cast(void*)a);
-            writeln(b.name);
-
-            QMetaType.destroy(id, cast(void*)a);
-            QMetaType.destroy(id, cast(void*)b);
-
-            scope ds = new QDataStream(cast(void*)3, QtdObjectFlags.nativeOwnership);
-            QMetaType.save(ds, id, cast(void*)i);
-            QMetaType.load(ds, id, cast(void*)i);
-            writeln("Done iterating ", x, " ", y, " ", z);
-        }
-
-        foo(i + 1, i + 2, i + 3);
-    }
-    /+
-
-    writeln("Great!");
-
-
-    writeln("Even greater!");
-    +/
-
 }