summaryrefslogtreecommitdiff
path: root/basket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basket.cxx')
-rw-r--r--basket.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/basket.cxx b/basket.cxx
index 7b3336a..b730bf6 100644
--- a/basket.cxx
+++ b/basket.cxx
@@ -59,11 +59,17 @@ 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;
+ emit subtotalChanged();
m_totalCost = order->total_cost;
- */
+ emit totalCostChanged();
}
}