radio/perturabo/main.cpp
2018-08-05 00:48:17 +03:00

19 lines
435 B
C++

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