Fixed crash on add item via favorite button after application start.
Favorite buttons has short name labels. closes #296 refs #293
This commit is contained in:
@@ -12,6 +12,7 @@ class SHOPSHARED_EXPORT ShopItem : public QObject, public IShopItem
|
||||
|
||||
Q_PROPERTY(QString code READ code)
|
||||
Q_PROPERTY(QString name READ name)
|
||||
Q_PROPERTY(QString shortName READ shortName)
|
||||
Q_PROPERTY(QDecDouble unitPrice READ unitPrice)
|
||||
Q_PROPERTY(Enums::VatType vatType READ vatType)
|
||||
|
||||
@@ -27,6 +28,7 @@ public:
|
||||
virtual int id() override { return 0; }
|
||||
virtual QString code() { return ""; }
|
||||
virtual QString name() override { return ""; }
|
||||
virtual QString shortName() override { return ""; }
|
||||
virtual QDecDouble unitPrice() override { return QDecDouble(); }
|
||||
virtual Enums::VatType vatType() override { return Enums::NONE; }
|
||||
virtual QString pluginId() override { return ""; }
|
||||
|
||||
Reference in New Issue
Block a user