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:
2017-04-04 21:57:36 +02:00
parent aa91acbe17
commit 4b3a2e1dd7
11 changed files with 40 additions and 18 deletions
+2
View File
@@ -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 ""; }