25 auto nonConstPtr =
const_cast<QHash<int, QVariant>*
>(&_data);
29 if (nonConstPtr->contains(key)) {
30 return nonConstPtr->operator[](key);
38 if (_data.contains(key)) {
39 return &_data.operator[](key);
void setValue(int key, const QVariant &value)
setValue This method sets new value for the filed. Works like a insert method of the QMap
const QVariant & value(int key, const QVariant &defaultVal={}) const
value this method return value of the key.
QDataStream & toStream(QDataStream &stream) const override final
fromStream This method should be write all members of the current object to the stream object.
QDataStream & fromStream(QDataStream &stream) override final
fromStream This method should be read all bytes from the stream object and full the current object.
QVariant * ref(int key)
ref This method return pointer to the object If this object is not exists return nullptr
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...