view mini/test1/main.d @ 114:547cd31fa12a

CMake: improve of the windows support for ldc.
author SokoL_SD
date Wed, 03 Jun 2009 15:53:24 +0000
parents e78566595089
children 7dd099050621
line wrap: on
line source
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();
}