Sending BCValueList to ViewPanels.

This commit is contained in:
2025-12-27 18:43:15 +01:00
parent a12fde26ef
commit 139397f045
9 changed files with 129 additions and 71 deletions

View File

@@ -100,12 +100,55 @@ public:
//mutable std::optional<uint32_t> rawValue;
};
// ?? ist das nötig?
Q_DECLARE_METATYPE(BCDataValue*)
using BCValueList = QList<BCDataValue>;
//using BCValueList = QList<BCDataValue>;
class BCValueList : public QList<BCDataValue>
{
public:
BCValueList()
{
qDebug() << "BC Construct: " << this;
}
BCValueList(const BCValueList& other)
: QList<BCDataValue>(other)
{
qDebug() << "BC: Copy from: " << &other << "to" << this;
}
BCValueList(BCValueList&& other) noexcept
: QList<BCDataValue>( other )
{
qDebug() << "Move from: " << &other << "to" << this;
}
// Copy Assignment Operator
BCValueList& operator=(const BCValueList& other)
{
QList<BCDataValue>::operator=( other );
return *this;
}
// Move Assignment Operator
BCValueList& operator=(BCValueList&& other) noexcept
{
QList<BCDataValue>::operator=( other );
return *this;
}
~BCValueList()
{
qDebug() << "Destruct: " << this;
}
};
Q_DECLARE_METATYPE(BCValueList)
// abbreviations: