Changed value handling.

This commit is contained in:
2026-01-18 18:52:30 +01:00
parent 6aec85418a
commit 093b90fab6
7 changed files with 40 additions and 27 deletions

View File

@@ -39,7 +39,7 @@
class QPropertyAnimation;
class QVariantAnimation;
class QTableView;
class BCDeviceView;
class BCValueDelegate : public QStyledItemDelegate
@@ -48,9 +48,7 @@ class BCValueDelegate : public QStyledItemDelegate
public:
explicit BCValueDelegate(const BCValueList& valueList, QTableView* view );
// QString displayText(const QVariant& dataValue, const QLocale& locale) const override;
explicit BCValueDelegate(const BCValueList& valueList, BCDeviceView* view );
// Zuständig für den Edit-Modus (Doppelklick)
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex& index) const override;
@@ -65,7 +63,6 @@ public slots:
void onHighlightRow(int row);
protected:
void updateRow(int row);
@@ -77,11 +74,11 @@ protected:
// Datenbeschaffung ist alleine Sache des Models.
const BCValueList& _valueList;
QTableView* _view{};
BCDeviceView* _view{};
QPropertyAnimation* _animation{};
QHash<int, qreal> _rowOpacities;
QHash<int, qreal> _rowOpacities;
QHash<int, QVariantAnimation*> _rowAnimations;
static constexpr int cTextBlockOffset = 130;