From c2d38b094ceba47591b0524646b1e1c88e1005c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 6 Oct 2019 18:23:59 +0800 Subject: Initialise basket --- qicclient/basket.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qicclient/basket.hxx') diff --git a/qicclient/basket.hxx b/qicclient/basket.hxx index eabec33..b3b5e11 100644 --- a/qicclient/basket.hxx +++ b/qicclient/basket.hxx @@ -34,7 +34,11 @@ namespace ICClient { public: explicit Basket(QObject* parent = nullptr) - : QAbstractListModel{parent} {} + : QAbstractListModel{parent} + , m_subtotal{.0} + , m_shipping{.0} + , m_totalCost{.0} + {} int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; -- cgit v1.2.3