1、完成时间模式的切换;
parent
102aa1de3c
commit
ebc8e4e79b
@ -0,0 +1,14 @@
|
||||
#include "CFDStructSigsCenter.h"
|
||||
|
||||
CFDStructSigsCenter* CFDStructSigsCenter::m_instance = nullptr;
|
||||
CFDStructSigsCenter::CFDStructSigsCenter(QObject *parent) : QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
CFDStructSigsCenter *CFDStructSigsCenter::getInstance()
|
||||
{
|
||||
if (m_instance == nullptr) {
|
||||
m_instance = new CFDStructSigsCenter;
|
||||
}
|
||||
return m_instance;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
#ifndef CFDSTRUCTSIGSCENTER_H
|
||||
#define CFDSTRUCTSIGSCENTER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "CFDStructDataManager_global.h"
|
||||
|
||||
class CFDSTRUCTDATAMANAGER_EXPORT CFDStructSigsCenter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CFDStructSigsCenter(QObject *parent = nullptr);
|
||||
static CFDStructSigsCenter* getInstance();
|
||||
signals:
|
||||
void sig_solverTimeModeDataChanged();
|
||||
private:
|
||||
static CFDStructSigsCenter* m_instance;
|
||||
};
|
||||
|
||||
#endif // CFDSTRUCTSIGSCENTER_H
|
@ -0,0 +1,14 @@
|
||||
#include "CUISigsCenter.h"
|
||||
|
||||
CUISigsCenter* CUISigsCenter::m_instance = nullptr;
|
||||
CUISigsCenter::CUISigsCenter(QObject *parent) : QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
CUISigsCenter *CUISigsCenter::getInstance()
|
||||
{
|
||||
if (m_instance == nullptr) {
|
||||
m_instance = new CUISigsCenter;
|
||||
}
|
||||
return m_instance;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
#ifndef CUISIGSCENTER_H
|
||||
#define CUISIGSCENTER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "CUIPropertyAPI.h"
|
||||
|
||||
class CUIPropertyAPI CUISigsCenter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CUISigsCenter(QObject *parent = nullptr);
|
||||
static CUISigsCenter* getInstance();
|
||||
signals:
|
||||
void sig_cuiPropertyChanged(int);
|
||||
private:
|
||||
static CUISigsCenter* m_instance;
|
||||
};
|
||||
|
||||
#endif // CUISIGSCENTER_H
|
Loading…
Reference in New Issue