// 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();
}
-
-