Made 'syncFromDevice' work again.

This commit is contained in:
2025-12-28 22:48:18 +01:00
parent 517dcceb81
commit b7d4441d56
20 changed files with 167 additions and 916 deletions

View File

@@ -34,7 +34,7 @@
#define BCVALUEMODEL_H
#include <QAbstractTableModel>
#include <bcdatavalue.h>
#include <bcvalue.h>
/**
* @brief Das BCValueModel dient als Interface zu den eigentlichen Daten,
@@ -52,10 +52,10 @@ public:
explicit BCValueModel(QObject *parent = nullptr);
void addValue(const BCDataValue& val);
void addValue(const BCValue& val);
void takeValueList(BCValueList& valueList);
const BCValueList& getValueList();
const BCValueList& getValueList() const;
// Pure Virtual Functions von QAbstractTableModel
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
@@ -68,7 +68,11 @@ public:
Qt::ItemFlags flags(const QModelIndex& index) const override;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override;
private:
public slots:
void onValueUpdated( int index, BC::State state, const QString& newValue="" );
protected:
// Die eigentlichen Werte wohnen im tatsächlich hier, im Model.
BCValueList _valueList;