diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 15:38:47 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-29 15:38:47 +0800 |
commit | 228307e324190e760dc298ef84c3ffb29d4c8237 (patch) | |
tree | 36f97ddb46c12ac98fb81b5969dbf6c64b474702 /basket.cxx | |
parent | a2a5964bddaf61c830f9a2a2a9bf6226c0168e64 (diff) |
C++ instances keep a pointer to the C version
Diffstat (limited to 'basket.cxx')
-rw-r--r-- | basket.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -1,4 +1,5 @@ #include <algorithm> +#include <icclient/ord.h> #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; + */ } } |