USe QSettings parameter in constructor.
This commit is contained in:
		@@ -1,26 +1,24 @@
 | 
			
		||||
#include "vmc.h"
 | 
			
		||||
#include "AppControl.h"
 | 
			
		||||
#include "ATBHMIconfig.h"
 | 
			
		||||
#include "version.h"
 | 
			
		||||
#include "ATBAPP.h"
 | 
			
		||||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
#include <QProcess>
 | 
			
		||||
#include <QTextCodec>
 | 
			
		||||
#include <QDateTime>
 | 
			
		||||
#include <QTimer>
 | 
			
		||||
#include <QDebug>
 | 
			
		||||
#include <QSettings>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VMC::VMC(QObject *parent) : QObject(parent) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VMC::VMC(AppControl *main, ATBHMIconfig *config, QObject *parent) :
 | 
			
		||||
    QObject(parent)
 | 
			
		||||
{
 | 
			
		||||
VMC::VMC(QObject *appControl, QSettings const *settings,
 | 
			
		||||
         QObject *parent)
 | 
			
		||||
  : QObject(parent) {
 | 
			
		||||
    this->flag_blockVMCScreen = 0;
 | 
			
		||||
    this->currentCachedScreen = VMC_CMD_SCREEN_START;
 | 
			
		||||
 | 
			
		||||
    this->main    = main;
 | 
			
		||||
    this->config  = config;
 | 
			
		||||
    this->m_appControl = appControl;
 | 
			
		||||
    this->m_settings = settings;
 | 
			
		||||
 | 
			
		||||
    this->com_interface = new COM_interface(this);
 | 
			
		||||
    this->receiveBuffer = new ReceiveBuffer(com_interface, this);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user