radio/corax/main.cpp

18 lines
410 B
C++
Raw Permalink Normal View History

2018-08-04 21:46:25 +00:00
#include <QtCore/QCoreApplication>
#include <QtCore/QTimer>
#include <utils/signalcatcher.h>
#include "corax.h"
int main(int argc, char **argv) {
QCoreApplication app(argc, argv);
W::SignalCatcher sc(&app);
Corax* corax = new Corax(&app);
QTimer::singleShot(0, corax, SLOT(start()));
QObject::connect(&app, SIGNAL(aboutToQuit()), corax, SLOT(stop()));
return app.exec();
}