mirror of
https://github.com/Indy970/QtHPConnect
synced 2025-01-15 03:41:21 +01:00
25 lines
414 B
C++
25 lines
414 B
C++
#include "eventthread.h"
|
|
#include <mainwindow.h>
|
|
#include <QDebug>
|
|
|
|
EventThread::EventThread(MainWindow * parent):QThread (parent)
|
|
{
|
|
|
|
main=parent;
|
|
if (main)
|
|
hpapi=main->getAPI();
|
|
|
|
if (hpapi==nullptr)
|
|
qDebug()<<"hpusb not started";
|
|
}
|
|
|
|
void EventThread::run() {
|
|
|
|
qDebug()<<"Event run";
|
|
// emit startTimer();
|
|
hpapi->eventHandler();
|
|
qDebug()<<"Event end";
|
|
//exec();
|
|
}
|
|
|
|
|