closes #1: Favorite buttons has been extended with category buttons.
This commit is contained in:
@@ -7,6 +7,7 @@ namespace qx {
|
||||
t.setName("CommodityTypeData");
|
||||
t.id(&CommodityTypeData::m_id, "id");
|
||||
t.data(&CommodityTypeData::m_name, "name");
|
||||
t.data(&CommodityTypeData::m_color, "color");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,4 +48,12 @@ QString CommodityTypeData::toString()
|
||||
return this->name();
|
||||
}
|
||||
|
||||
QString CommodityTypeData::color() const {
|
||||
return m_color;
|
||||
}
|
||||
|
||||
void CommodityTypeData::setColor(const QString& color) {
|
||||
m_color = color;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user