USe QSettings parameter in constructor.

This commit is contained in:
Gerhard Hoffmann 2023-11-13 13:48:06 +01:00
parent e52813b78f
commit 74cf8f136c

View File

@ -1,26 +1,24 @@
#include "vmc.h" #include "vmc.h"
#include "AppControl.h"
#include "ATBHMIconfig.h"
#include "version.h" #include "version.h"
#include "ATBAPP.h"
#include <QObject>
#include <QProcess> #include <QProcess>
#include <QTextCodec> #include <QTextCodec>
#include <QDateTime> #include <QDateTime>
#include <QTimer> #include <QTimer>
#include <QDebug> #include <QDebug>
#include <QSettings>
VMC::VMC(QObject *parent) : QObject(parent) { VMC::VMC(QObject *appControl, QSettings const *settings,
} QObject *parent)
: QObject(parent) {
VMC::VMC(AppControl *main, ATBHMIconfig *config, QObject *parent) :
QObject(parent)
{
this->flag_blockVMCScreen = 0; this->flag_blockVMCScreen = 0;
this->currentCachedScreen = VMC_CMD_SCREEN_START; this->currentCachedScreen = VMC_CMD_SCREEN_START;
this->main = main; this->m_appControl = appControl;
this->config = config; this->m_settings = settings;
this->com_interface = new COM_interface(this); this->com_interface = new COM_interface(this);
this->receiveBuffer = new ReceiveBuffer(com_interface, this); this->receiveBuffer = new ReceiveBuffer(com_interface, this);