view mini/test1/main.d @ 364:a084e2df3776

Preparing for non-QObject meta-objects. Now meta-objects for static types can be uniformly accessed using meta!T
author Max Samukha <maxter@maxter.com>
date Fri, 11 Jun 2010 12:16:09 +0300
parents bcbfffef4f9e
children 185df9220ea7
line wrap: on
line source

import qt.core.QMetaType;

import std.stdio;
import std.conv;
import qtd.QtdObject;

class A
{
    string name;

    this(A copy)
    {
        writeln("Creating new from ", copy.name);
        name = "Copy of " ~ copy.name;
    }

    this(string name)
    {
        this.name = name;
    }

    void dispose()
    {
        writeln("Disposing ", name);
    }
}

void main(string[] args)
{
}