Made 'syncFromDevice' work again.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user