Mercurial > projects > qtd
view mini/test1/main.d @ 325:b460cd08041f signals
dmd 2.037 opEquals bug-feature
author | eldar1@eldar1-laptop |
---|---|
date | Wed, 30 Dec 2009 11:25:07 +0000 |
parents | 49bfc86ff583 |
children | beaf4a2974d7 |
line wrap: on
line source
import qt.core.QCoreApplication; version(Tango) { import tango.io.Stdout; } else { import std.stdio; } 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(parent.children.length).newline; 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(); }