| 30 | #define EP_INV (1. / (EP)) |
| 31 | |
| 32 | TVProcessorTab::TVProcessorTab(QWidget *parent, qreal rate) : |
| 33 | QWidget(parent), |
| 34 | ui(new Ui::TVProcessorTab) |
| 35 | { |
| 36 | this->sampleRate = rate; |
| 37 | |
| 38 | ui->setupUi(this); |
| 39 | |
| 40 | this->tvThread = new QThread(); |
| 41 | this->tvWorker = new TVProcessorWorker(); |
| 42 | this->tvWorker->moveToThread(this->tvThread); |
| 43 | |
| 44 | connect( |
| 45 | this->tvThread, |
| 46 | &QThread::finished, |
| 47 | this->tvWorker, |
| 48 | &QObject::deleteLater); |
| 49 | |
| 50 | connect( |
| 51 | this->tvThread, |
| 52 | &QThread::finished, |
| 53 | this->tvThread, |
| 54 | &QObject::deleteLater); |
| 55 | |
| 56 | this->tvThread->start(); |
| 57 | |
| 58 | this->connectAll(); |
| 59 | this->onTVProcessorUiChanged(); |
| 60 | } |
| 61 | |
| 62 | TVProcessorTab::~TVProcessorTab() |
| 63 | { |
nothing calls this directly
no test coverage detected