forked from blue/squawk
25 lines
668 B
C++
25 lines
668 B
C++
#include "ui/squawk.h"
|
|
#include "core/squawk.h"
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtCore/QThread>
|
|
#include <QtCore/QObject>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
Squawk w;
|
|
w.show();
|
|
|
|
Core::Squawk* squawk = new Core::Squawk();
|
|
QThread* coreThread = new QThread();
|
|
squawk->moveToThread(coreThread);
|
|
|
|
QObject::connect(coreThread, SIGNAL(finished()), squawk, SLOT(deleteLater()));
|
|
//QObject::connect(this, &Controller::operate, worker, &Worker::doWork);
|
|
//QObject::connect(worker, &Worker::resultReady, this, &Controller::handleResults);
|
|
coreThread->start();
|
|
|
|
return app.exec();
|
|
}
|
|
|