Changed value handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user