summaryrefslogtreecommitdiff
path: root/qicclient
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-11 11:49:00 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-11 11:49:00 +0800
commit4212c19b7f096239278e102b6a0b3e03e27e9102 (patch)
tree3cda26ce51a9bb862d7496cced092f20c4e3c687 /qicclient
parentf8523b6e7c1a5cc7f984ddf25ff3ba7f2c39194a (diff)
order function moved to ord namespace
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/basket.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/qicclient/basket.hxx b/qicclient/basket.hxx
index 9e0d4f1..8930821 100644
--- a/qicclient/basket.hxx
+++ b/qicclient/basket.hxx
@@ -5,8 +5,6 @@
#include <icclient/ord.h>
#include "product.hxx"
-struct icclient_ord_order;
-
namespace QICClient {
struct Item
@@ -52,8 +50,8 @@ namespace QICClient {
int role = Qt::DisplayRole
) const Q_DECL_OVERRIDE;
- icclient_ord_order* data() { return m_data; }
- void setData(icclient_ord_order* order);
+ struct icclient_ord_order* data() { return m_data; }
+ void setData(struct icclient_ord_order* order);
double subtotal() const { return m_subtotal; }
double shipping() const { return m_shipping; }
double totalCost() const { return m_totalCost; }
@@ -70,7 +68,7 @@ namespace QICClient {
private:
void addItem(Item const& item);
QList<Item> items;
- icclient_ord_order* m_data;
+ struct icclient_ord_order* m_data;
double m_subtotal;
double m_shipping;
double m_totalCost;