]> code.delx.au - virtualtones/blobdiff - main.cpp
Updated to modern Qt
[virtualtones] / main.cpp
index f4f9bcfcea4b40b1cc47a11731c574dafc0af7d5..29a38293aadcd3f5e1d3869d6af8aaee74b23d2c 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -2,15 +2,13 @@
 // Written by James Bunton <james@delx.cjb.net>
 // 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();
 }
-
-