Mercurial > projects > qtd
diff mini/test1/main.d @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children | 7dd099050621 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mini/test1/main.d Mon May 11 16:01:50 2009 +0000 @@ -0,0 +1,29 @@ +import qt.core.QCoreApplication; + +import tango.io.Stdout; + +int main(string[] args) +{ + auto app = new QCoreApplication(args); + + auto parent = new QObject(); + parent.setObjectName("papa"); + auto child1 = new QObject(parent); + child1.setObjectName("child1"); + auto child2 = new QObject(parent); + child2.setObjectName("child2"); + auto child3 = new QObject(parent); + child3.setObjectName("child3"); + + auto cd = parent.children; + + Stdout(app.arguments).newline; + foreach(child; cd) + Stdout(child.objectName).newline; + + app.setLibraryPaths(["freakin", "bloody", "awesome!"]); + Stdout(app.libraryPaths).newline; + + return 5; +// return app.exec(); +}