Libraries: remove dependency to gui/widgets

This commit is contained in:
Siegfried Siegert 2024-03-02 12:15:15 +01:00
parent b8089c443c
commit 7abe8ae419
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
6 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,6 @@
CONFIG += plugin CONFIG += plugin
QT -= gui QT -= gui
QT += widgets serialport QT += serialport
win32 { win32 {

View File

@ -3,7 +3,7 @@
#ifndef SER_H #ifndef SER_H
#define SER_H #define SER_H
#include <stdint.h> #include <stdint.h>
#include <QMainWindow> #include <QObject>
//#include <QString> //#include <QString>
#include <QTimer> #include <QTimer>
#include <QSerialPort> #include <QSerialPort>

View File

@ -27,7 +27,6 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM)
#define hwapi_H #define hwapi_H
#include <stdint.h> #include <stdint.h>
//#include <QTabWidget>
#include <QtPlugin> #include <QtPlugin>
#include <QTimer> #include <QTimer>
#include <QObject> #include <QObject>
@ -98,7 +97,7 @@ private:
//QTimer *hwapi_triggerBL; //QTimer *hwapi_triggerBL;
public: public:
explicit hwapi(QWidget *parent = nullptr); explicit hwapi(QObject *parent = nullptr);
#ifdef THIS_IS_CA_MASTER #ifdef THIS_IS_CA_MASTER

View File

@ -1,7 +1,7 @@
#ifndef SERIAL_FRAME_H #ifndef SERIAL_FRAME_H
#define SERIAL_FRAME_H #define SERIAL_FRAME_H
#include <QMainWindow> #include <QObject>
#include <QString> #include <QString>
#include <QTimer> #include <QTimer>
#include "tslib.h" #include "tslib.h"
@ -43,7 +43,7 @@
#define STARTSIGN_RECEIVE_LONG 0x5D #define STARTSIGN_RECEIVE_LONG 0x5D
class T_prot : public QMainWindow class T_prot : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -3,7 +3,7 @@
#define RUN_PROCESS_H #define RUN_PROCESS_H
#include <stdint.h> #include <stdint.h>
#include <QMainWindow> #include <QObject>
#include <QString> #include <QString>
#include <QTimer> #include <QTimer>
#include "tslib.h" #include "tslib.h"

View File

@ -37,7 +37,7 @@ static uint8_t bl_startupStep;
hwapi::hwapi(QWidget *parent) : QObject(parent) hwapi::hwapi(QObject *parent) : QObject(parent)
{ {
// constructor // constructor
qCritical() << " hwapi::hwapi() APP_VERSION:" << APP_VERSION; qCritical() << " hwapi::hwapi() APP_VERSION:" << APP_VERSION;