Mercurial > projects > qtd
view mini/test1/main.d @ 305:3b79bd4298e8 signals
Fixed "make install" command on windows.
http://www.dsource.org/forums/viewtopic.php?t=4931&sid=a9b3b6103c99ae05c76269fd7c6c5448
author | Alexey Prokhin <alexey.prokhin@yandex.ru> |
---|---|
date | Sat, 19 Dec 2009 18:43:32 +0300 |
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(); }