From 228307e324190e760dc298ef84c3ffb29d4c8237 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: Mon, 29 Jun 2020 15:38:47 +0800 Subject: C++ instances keep a pointer to the C version --- basket.cxx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'basket.cxx') diff --git a/basket.cxx b/basket.cxx index 52dca83..7b3336a 100644 --- a/basket.cxx +++ b/basket.cxx @@ -1,4 +1,5 @@ #include +#include #include "qicclient/basket.hxx" namespace ICClient { @@ -58,18 +59,11 @@ namespace ICClient { items << item; endInsertRows(); emit rowCountChanged(); - } - void Basket::update(icclient_ord_order* order) - { - if (order) { - for (size_t i = 0; i < order->nitems; i++) - addItem(Item{order->items[i]}); - m_subtotal = order->subtotal; - m_totalCost = order->total_cost; - emit subtotalChanged(); - emit totalCostChanged(); - } + /* + m_subtotal = order->subtotal; + m_totalCost = order->total_cost; + */ } } -- cgit v1.2.3