hwapi: remove unused dependency to QWidget
This commit is contained in:
parent
1ee1242a4c
commit
06333c792f
@ -87,8 +87,6 @@ Level 3): send command: "start payment process"
|
|||||||
#define hwapi_H
|
#define hwapi_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <QTabWidget>
|
|
||||||
#include <QtPlugin>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include "interfaces.h"
|
#include "interfaces.h"
|
||||||
#include "datIf.h"
|
#include "datIf.h"
|
||||||
@ -118,7 +116,7 @@ private:
|
|||||||
|
|
||||||
QSharedMemory *m_sharedMem;
|
QSharedMemory *m_sharedMem;
|
||||||
public:
|
public:
|
||||||
explicit hwapi(QWidget *parent = nullptr);
|
explicit hwapi(QObject *parent = nullptr);
|
||||||
virtual ~hwapi();
|
virtual ~hwapi();
|
||||||
|
|
||||||
T_datif *myDatif;
|
T_datif *myDatif;
|
||||||
|
@ -34,7 +34,7 @@ static const QMap<QString, int> baudrateMap = {
|
|||||||
{"57600" , 4}, {"115200" , 5}
|
{"57600" , 4}, {"115200" , 5}
|
||||||
};
|
};
|
||||||
|
|
||||||
hwapi::hwapi(QWidget *parent) : QObject(parent) {
|
hwapi::hwapi(QObject *parent) : QObject(parent) {
|
||||||
// create or attach shared memory segment
|
// create or attach shared memory segment
|
||||||
// !!! The compoment creating the shared memory MUST be ATBQT !!!
|
// !!! The compoment creating the shared memory MUST be ATBQT !!!
|
||||||
m_sharedMem = SharedMemBuffer::getShm(sizeof(SharedMemBuffer));
|
m_sharedMem = SharedMemBuffer::getShm(sizeof(SharedMemBuffer));
|
||||||
|
Loading…
Reference in New Issue
Block a user