hwapi: remove unused dependency to QWidget

This commit is contained in:
Siegfried Siegert 2023-05-02 10:07:42 +02:00
parent 9bf99c5515
commit f0f0493d19
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 2 additions and 4 deletions

View File

@ -87,8 +87,6 @@ Level 3): send command: "start payment process"
#define hwapi_H
#include <stdint.h>
#include <QTabWidget>
#include <QtPlugin>
#include <QObject>
#include "interfaces.h"
#include "datIf.h"
@ -117,7 +115,7 @@ private:
QSharedMemory *m_sharedMem;
public:
explicit hwapi(QWidget *parent = nullptr);
explicit hwapi(QObject *parent = nullptr);
virtual ~hwapi();
T_datif *myDatif;

View File

@ -34,7 +34,7 @@ static const QMap<QString, int> baudrateMap = {
{"57600" , 4}, {"115200" , 5}
};
hwapi::hwapi(QWidget *parent) : QObject(parent) {
hwapi::hwapi(QObject *parent) : QObject(parent) {
// create or attach shared memory segment
// !!! The compoment creating the shared memory MUST be ATBQT !!!
m_sharedMem = SharedMemBuffer::getShm(sizeof(SharedMemBuffer));