]> code.delx.au - virtualtones/blobdiff - main.cpp
README update
[virtualtones] / main.cpp
index f4f9bcfcea4b40b1cc47a11731c574dafc0af7d5..5a5ce36c6624c4c35a8b2dc8c9487baf752e7d6e 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -1,16 +1,14 @@
 // main.cpp - MIDI keyboard program
-// Written by James Bunton <james@delx.cjb.net>
+// Written by James Bunton <james@delx.net.au>
 // Licensed under the GPL, see COPYING.txt for more details
 
-#include <qapplication.h>
+#include <QApplication>
 #include "mainwin.h"
 
 int main(int argc, char **argv)
 {
        QApplication a(argc, argv);
        MainWin w;
-       a.setMainWidget(&w);
+       QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
        return a.exec();
 }
-
-