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 --- libicclient | 2 +- qicclient/basket.hxx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libicclient b/libicclient index c2c89d3..fc55559 160000 --- a/libicclient +++ b/libicclient @@ -1 +1 @@ -Subproject commit c2c89d376b0d80299ad0fe8228ecef4279557160 +Subproject commit fc555594c636e87ffe2384e6b5240cfa934c6cf4 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