radio/perturabo/main.cpp

19 lines
435 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 "perturabo.h"
int main(int argc, char **argv) {
QCoreApplication app(argc, argv);
W::SignalCatcher sc(&app);
Perturabo* perturabo = new Perturabo(&app);
QTimer::singleShot(0, perturabo, SLOT(start()));
QObject::connect(&app, SIGNAL(aboutToQuit()), perturabo, SLOT(stop()));
return app.exec();
}