Fix serial port error declaration for older qt versions
parent
0847bb35a5
commit
5f2560d380
|
|
@ -34,12 +34,8 @@
|
|||
|
||||
// SLIP: https://tools.ietf.org/html/rfc1055
|
||||
|
||||
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
|
||||
|
||||
ZigbeeInterfaceDeconz::ZigbeeInterfaceDeconz(QObject *parent) : QObject(parent)
|
||||
{
|
||||
qRegisterMetaType<QSerialPort::SerialPortError>();
|
||||
|
||||
m_reconnectTimer = new QTimer(this);
|
||||
m_reconnectTimer->setSingleShot(true);
|
||||
m_reconnectTimer->setInterval(5000);
|
||||
|
|
|
|||
|
|
@ -34,12 +34,8 @@
|
|||
|
||||
// SLIP: https://tools.ietf.org/html/rfc1055
|
||||
|
||||
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
|
||||
|
||||
ZigbeeInterfaceNxp::ZigbeeInterfaceNxp(QObject *parent) : QObject(parent)
|
||||
{
|
||||
qRegisterMetaType<QSerialPort::SerialPortError>();
|
||||
|
||||
m_reconnectTimer = new QTimer(this);
|
||||
m_reconnectTimer->setSingleShot(true);
|
||||
m_reconnectTimer->setInterval(5000);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
ZigbeeBridgeController::ZigbeeBridgeController(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
qRegisterMetaType<QSerialPort::SerialPortError>();
|
||||
}
|
||||
|
||||
QString ZigbeeBridgeController::firmwareVersion() const
|
||||
|
|
|
|||
|
|
@ -29,9 +29,11 @@
|
|||
#define ZIGBEEBRIDGECONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include <QSerialPort>
|
||||
#include "zigbee.h"
|
||||
|
||||
Q_DECLARE_METATYPE(QSerialPort::SerialPortError);
|
||||
|
||||
class ZigbeeBridgeController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
SUBDIRS += libnymea-zigbee zigbee-cli
|
||||
SUBDIRS += libnymea-zigbee #zigbee-cli
|
||||
|
|
|
|||
Loading…
Reference in New Issue