Added temperature monitor screen. Added current factors for BMS configuration

This commit is contained in:
Yury Shuvakin
2023-03-21 10:10:28 +03:00
parent 7c732215ec
commit 0daea7162a
17 changed files with 1496 additions and 326 deletions

27
currenttablemodel.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef CURRENTTABLEMODEL_H
#define CURRENTTABLEMODEL_H
#include <QAbstractTableModel>
class CurrentTableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit CurrentTableModel(QObject* parent = nullptr);
~CurrentTableModel();
Q_INVOKABLE void setCurrentData(const QVariantList& data);
void setCurrentData(const QList<QList<float>>& data);
int rowCount(const QModelIndex& = QModelIndex()) const override;
int columnCount(const QModelIndex& = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role) const override;
QHash<int, QByteArray> roleNames() const override;
private:
QList<QList<float>> data_;
};
#endif // CURRENTTABLEMODEL_H