view mini/test1/main.d @ 328:9327c7cca8f5 signals

todo file as we don't use bugzilla a lot.
author eldar1@eldar1-laptop
date Sun, 03 Jan 2010 12:40:51 +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();
}