Mercurial > projects > qtd
view mini/test1/main.d @ 331:1defd6a98364 signals
Make static constructors shared. Requires new dmd. Remove irrelevant junk
author | eldar1@eldar1-laptop |
---|---|
date | Fri, 22 Jan 2010 23:59: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(); }