summaryrefslogtreecommitdiff
path: root/basket.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
commit228307e324190e760dc298ef84c3ffb29d4c8237 (patch)
tree36f97ddb46c12ac98fb81b5969dbf6c64b474702 /basket.cxx
parenta2a5964bddaf61c830f9a2a2a9bf6226c0168e64 (diff)
C++ instances keep a pointer to the C version
Diffstat (limited to 'basket.cxx')
-rw-r--r--basket.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/basket.cxx b/basket.cxx
index 52dca83..7b3336a 100644
--- a/basket.cxx
+++ b/basket.cxx
@@ -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;
+ */
}
}