closes #4: Favorite buttons has been extended with category buttons.
This commit is contained in:
@@ -12,6 +12,7 @@ class CommodityTypeData :public ComboItem
|
||||
|
||||
QX_REGISTER_FRIEND_CLASS(CommodityTypeData)
|
||||
Q_PROPERTY(QString name READ name WRITE setName)
|
||||
Q_PROPERTY(QString color READ color WRITE setColor)
|
||||
|
||||
public:
|
||||
explicit CommodityTypeData(QObject *parent = nullptr);
|
||||
@@ -22,9 +23,13 @@ public:
|
||||
QString name() const;
|
||||
void setName(const QString &name);
|
||||
|
||||
QString color() const;
|
||||
void setColor(const QString& color);
|
||||
|
||||
private:
|
||||
long m_id{0};
|
||||
QString m_name;
|
||||
QString m_color;
|
||||
|
||||
// ComboItem interface
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user