From 06333c792f9b4a3468a0d1416101a58d69698d3b Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 2 May 2023 10:07:42 +0200 Subject: [PATCH] hwapi: remove unused dependency to QWidget --- include/hwapi.h | 4 +--- src/hwapi.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/hwapi.h b/include/hwapi.h index cd60912..a2c1410 100644 --- a/include/hwapi.h +++ b/include/hwapi.h @@ -87,8 +87,6 @@ Level 3): send command: "start payment process" #define hwapi_H #include -#include -#include #include #include "interfaces.h" #include "datIf.h" @@ -118,7 +116,7 @@ private: QSharedMemory *m_sharedMem; public: - explicit hwapi(QWidget *parent = nullptr); + explicit hwapi(QObject *parent = nullptr); virtual ~hwapi(); T_datif *myDatif; diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 86e1068..080740f 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -34,7 +34,7 @@ static const QMap 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));