X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.cpp;h=7a2e392073f8ae3f13b7ad1429d8eec534d9495a;hb=0fcc2d879e1e0ca17eeaceae2159f5143a06586f;hp=684ccf3a82fde5813ad77b579791d4ccf578a312;hpb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;p=architektonas diff --git a/src/main.cpp b/src/main.cpp index 684ccf3..7a2e392 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,10 +5,10 @@ // (C) 2011 Underground Software // See the README and GPLv3 files for licensing and warranty information // -// JLH = James L. Hammons +// JLH = James Hammons // // Who When What -// --- ---------- ------------------------------------------------------------- +// --- ---------- ------------------------------------------------------------ // JLH 03/22/2011 Created this file // @@ -19,8 +19,10 @@ // Main app constructor--we stick globally accessible stuff here... -Architektonas::Architektonas(int argc, char * argv[]): QApplication(argc, argv)//, charWnd(NULL) +Architektonas::Architektonas(int & argc, char * argv[]): QApplication(argc, argv)//, charWnd(NULL) { + mainWindow = new ApplicationWindow; + mainWindow->show(); } @@ -29,15 +31,7 @@ int main(int argc, char * argv[]) { Q_INIT_RESOURCE(architektonas); // This must the same name as the exe filename -// QApplication app(argc, argv); -//printf("TTEdit app(argc, argv);\n"); Architektonas app(argc, argv); -//printf("TTEMainWindow mainWindow;\n"); - ApplicationWindow mainWindow; -//printf("mainWindow.show();\n"); - mainWindow.show(); -//OK, it gets to here at least... -//printf("return app.exec();\n"); return app.exec(); }