Remove dependency to QWidget / QMainWindow
This not GUI library!
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#ifndef SER_H
|
||||
#define SER_H
|
||||
#include <stdint.h>
|
||||
#include <QMainWindow>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
#include <QSerialPort>
|
||||
@@ -15,7 +15,7 @@
|
||||
// display all inputs and outputs in output window:
|
||||
//#define PRINTALLDEBUGS 1
|
||||
|
||||
class T_com : public QMainWindow //, public QPlainTextEdit
|
||||
class T_com : public QObject //, public QPlainTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -45,7 +45,7 @@ private slots:
|
||||
|
||||
|
||||
public:
|
||||
T_com(QWidget *parent = nullptr);
|
||||
T_com(QObject *parent = nullptr);
|
||||
~T_com();
|
||||
|
||||
QTimer *serRecTime;
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#include "dcBL.h"
|
||||
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
#include <QDebug>
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
|
||||
|
||||
class T_datif : public QMainWindow
|
||||
class T_datif : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -315,7 +315,7 @@ private slots:
|
||||
void StoredRecData();
|
||||
|
||||
public:
|
||||
T_datif(QWidget *parent = nullptr);
|
||||
T_datif(QObject *parent = nullptr);
|
||||
|
||||
T_prot *getProt() { return myDCIF; }
|
||||
T_prot const *getProt() const { return myDCIF; }
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#define SERIAL_FRAME_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <QMainWindow>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
#include "tslib.h"
|
||||
@@ -43,7 +43,7 @@
|
||||
#define STARTSIGN_RECEIVE_LONG 0x5D
|
||||
|
||||
|
||||
class T_prot : public QMainWindow
|
||||
class T_prot : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
Reference in New Issue
Block a user