Mercurial > projects > qtd
comparison mini/test1/main.d @ 188:7dd099050621
initial commit for D2 support
author | eldar |
---|---|
date | Sun, 12 Jul 2009 18:58:03 +0000 |
parents | e78566595089 |
children | 17b5e13364b7 49bfc86ff583 |
comparison
equal
deleted
inserted
replaced
187:34fe79a9915b | 188:7dd099050621 |
---|---|
1 import qt.core.QCoreApplication; | 1 import qt.core.QCoreApplication; |
2 | 2 |
3 import tango.io.Stdout; | 3 version(Tango) {} else { import std.stdio; } |
4 | 4 |
5 int main(string[] args) | 5 int main(string[] args) |
6 { | 6 { |
7 auto app = new QCoreApplication(args); | 7 auto app = new QCoreApplication(args); |
8 | 8 |
14 child2.setObjectName("child2"); | 14 child2.setObjectName("child2"); |
15 auto child3 = new QObject(parent); | 15 auto child3 = new QObject(parent); |
16 child3.setObjectName("child3"); | 16 child3.setObjectName("child3"); |
17 | 17 |
18 auto cd = parent.children; | 18 auto cd = parent.children; |
19 | 19 |
20 Stdout(app.arguments).newline; | 20 writeln(app.arguments); |
21 foreach(child; cd) | 21 foreach(child; cd) |
22 Stdout(child.objectName).newline; | 22 writeln(child.objectName); |
23 | 23 |
24 app.setLibraryPaths(["freakin", "bloody", "awesome!"]); | 24 app.setLibraryPaths(["freakin", "bloody", "awesome!"]); |
25 Stdout(app.libraryPaths).newline; | 25 |
26 writeln(app.libraryPaths); | |
26 | 27 |
27 return 5; | 28 return 5; |
28 // return app.exec(); | 29 // return app.exec(); |
29 } | 30 } |