订单流程修改--QThread事件循环导致的逻辑修改
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#include "devicepage.h"
|
||||
#include "ui_devicepage.h"
|
||||
|
||||
#include "../services/deviceservice.h"
|
||||
|
||||
#include <QAbstractItemView>
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
@@ -17,11 +15,6 @@ DevicePage::DevicePage(QWidget *parent)
|
||||
ui->setupUi(this);
|
||||
|
||||
setupTable();
|
||||
connect(&DeviceService::instance(), &DeviceService::statusChanged,
|
||||
this, &DevicePage::updateStatus);
|
||||
connect(&DeviceService::instance(), &DeviceService::communicationError,
|
||||
this, &DevicePage::handleCommunicationError);
|
||||
DeviceService::instance().startPolling();
|
||||
}
|
||||
|
||||
void DevicePage::setupTable()
|
||||
@@ -100,6 +93,5 @@ void DevicePage::handleCommunicationError(const QString &error)
|
||||
|
||||
DevicePage::~DevicePage()
|
||||
{
|
||||
DeviceService::instance().stopPolling();
|
||||
delete ui;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user