Sending BCValueList to ViewPanels.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user