[ref]同步711 这一份多一个导出的功能

This commit is contained in:
shi_jq 2025-03-17 11:21:34 +08:00
parent c65d0ad315
commit db4a437bd4
10 changed files with 20 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#include "CRealDataCollect.h" #include "CRealDataCollect.h"
#include <QTimer> #include <QTimer>
#include <QVariant> #include <QVariant>

View File

@ -1,4 +1,4 @@
#ifndef CREALDATACOLLECT_H #ifndef CREALDATACOLLECT_H
#define CREALDATACOLLECT_H #define CREALDATACOLLECT_H
#include <QMap> #include <QMap>

View File

@ -1,4 +1,4 @@
#ifndef CHANCOMMON_H #ifndef CHANCOMMON_H
#define CHANCOMMON_H #define CHANCOMMON_H
#include <QString> #include <QString>

View File

@ -1,4 +1,4 @@
#include "ChanPluginWidget.h" #include "ChanPluginWidget.h"
#include "ChanStatusWidget.h" #include "ChanStatusWidget.h"
ChanPluginWidget::ChanPluginWidget(QObject *parent) : QObject(parent) ChanPluginWidget::ChanPluginWidget(QObject *parent) : QObject(parent)

View File

@ -1,4 +1,4 @@
#ifndef CHANPLUGINWIDGET_H #ifndef CHANPLUGINWIDGET_H
#define CHANPLUGINWIDGET_H #define CHANPLUGINWIDGET_H
#include <QObject> #include <QObject>
@ -7,7 +7,7 @@
class ChanPluginWidget : public QObject, public CPluginWidgetInterface class ChanPluginWidget : public QObject, public CPluginWidgetInterface
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "kbd.PluginWidgetInterface/1.0") Q_PLUGIN_METADATA(IID HMI_WidgetPlugin_IID)
Q_INTERFACES(CPluginWidgetInterface) Q_INTERFACES(CPluginWidgetInterface)
public: public:

View File

@ -1,4 +1,4 @@
#include "ChanStatusWidget.h" #include "ChanStatusWidget.h"
#include "CRealDataCollect.h" #include "CRealDataCollect.h"
#include "ChanTableModel.h" #include "ChanTableModel.h"
#include "db_api_ex/CDbApi.h" #include "db_api_ex/CDbApi.h"

View File

@ -1,4 +1,4 @@
#ifndef CHANSTATUSWIDGET_H #ifndef CHANSTATUSWIDGET_H
#define CHANSTATUSWIDGET_H #define CHANSTATUSWIDGET_H
#include "ChanCommon.h" #include "ChanCommon.h"

View File

@ -1,4 +1,4 @@
#include "ChanTableModel.h" #include "ChanTableModel.h"
#include <QBrush> #include <QBrush>
ChanTableModel::ChanTableModel(QObject *parent) ChanTableModel::ChanTableModel(QObject *parent)

View File

@ -1,4 +1,4 @@
#ifndef CHANTABLEMODEL_H #ifndef CHANTABLEMODEL_H
#define CHANTABLEMODEL_H #define CHANTABLEMODEL_H
#include <QAbstractTableModel> #include <QAbstractTableModel>
@ -13,14 +13,18 @@ public:
void updateRealData(const QList<SChanStatus> &dataList); void updateRealData(const QList<SChanStatus> &dataList);
void updateRealValue(QList<SChanStatus> &dataList); void updateRealValue(QList<SChanStatus> &dataList);
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
private: private:
void update(); void update();
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
private: private:
QString getChanStatusDesc(const int &status) const; QString getChanStatusDesc(const int &status) const;

View File

@ -1,4 +1,4 @@
#include "ChanStatusWidget.h" #include "ChanStatusWidget.h"
#include <QApplication> #include <QApplication>
#include "pub_logger_api/logger.h" #include "pub_logger_api/logger.h"
#include "dp_chg_data_api/CDpcdaForApp.h" #include "dp_chg_data_api/CDpcdaForApp.h"