X-Git-Url: http://git.maemo.org/git/?p=qtmads;a=blobdiff_plain;f=qtmadsexample%2Fmain.cpp;fp=qtmadsexample%2Fmain.cpp;h=fcfe19cb7c3426e8f1dcb59ef5ddb081d71f5a8e;hp=0000000000000000000000000000000000000000;hb=e494cd05f1809789fd03d888c5592753d04f2031;hpb=4c87a3c868d40870d0eed21fb6e01c014acd3062 diff --git a/qtmadsexample/main.cpp b/qtmadsexample/main.cpp new file mode 100644 index 0000000..fcfe19c --- /dev/null +++ b/qtmadsexample/main.cpp @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2009 Eetu Lehmusvuo. + */ + +// INCLUDE FILES +#include +#include "mainwindow.h" + +int main(int argc, char *argv[]) + { + int ret; + + QApplication app(argc, argv); + app.setApplicationName("qtmadsexample"); + + MainWindow *main = new MainWindow(); + main->show(); + app.setActiveWindow(main); + + ret = app.exec(); + delete main; + + return ret; + } + +// End of file