Mercurial > projects > qtd
comparison mini/test1/main.d @ 368:185df9220ea7
Fixed startsWith. Implemented meta-object members as ranges. Freed QMetaObject from stuff that belongs to MetaClass
author | Max Samukha <maxter@maxter.com> |
---|---|
date | Mon, 28 Jun 2010 21:29:32 +0300 |
parents | bcbfffef4f9e |
children | a032df77b6ab |
comparison
equal
deleted
inserted
replaced
367:f69341b40588 | 368:185df9220ea7 |
---|---|
1 import qt.core.QMetaType; | 1 import qt.core.QMetaType; |
2 | 2 |
3 import std.stdio; | 3 import std.stdio; |
4 import std.conv; | 4 import std.conv; |
5 import qtd.QtdObject; | 5 import qtd.QtdObject; |
6 | 6 //import qt.gui.QApplication; |
7 class A | |
8 { | |
9 string name; | |
10 | |
11 this(A copy) | |
12 { | |
13 writeln("Creating new from ", copy.name); | |
14 name = "Copy of " ~ copy.name; | |
15 } | |
16 | |
17 this(string name) | |
18 { | |
19 this.name = name; | |
20 } | |
21 | |
22 void dispose() | |
23 { | |
24 writeln("Disposing ", name); | |
25 } | |
26 } | |
27 | 7 |
28 void main(string[] args) | 8 void main(string[] args) |
29 { | 9 { |
10 /+ | |
11 writeln("Application"); | |
12 scope app = new QApplication(args); | |
13 app.exec(); | |
14 +/ | |
30 } | 15 } |