mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-13 03:27:01 +01:00
30 lines
1.0 KiB
C++
30 lines
1.0 KiB
C++
#include "statusdata.h"
|
|
//-----------------------------------------------------------------------------
|
|
StatusData::StatusData(QObject *parent) :
|
|
QObject(parent)
|
|
{
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QList<StatusData::StatusType> StatusData::keys() const
|
|
{
|
|
return this->mData.keys();
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
const QVariant StatusData::data(const StatusType key) const
|
|
{
|
|
return this->mData.value(key, QString());
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
void StatusData::setData(const StatusType key, const QVariant &value)
|
|
{
|
|
this->mData.insert(key, value);
|
|
emit this->changed();
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
void StatusData::removeData(const StatusData::StatusType key)
|
|
{
|
|
this->mData.remove(key);
|
|
emit this->changed();
|
|
}
|
|
//-----------------------------------------------------------------------------
|