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 --- qicclient/basket.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qicclient/basket.hxx') diff --git a/qicclient/basket.hxx b/qicclient/basket.hxx index 019b165..f5665cd 100644 --- a/qicclient/basket.hxx +++ b/qicclient/basket.hxx @@ -54,9 +54,7 @@ namespace ICClient { double subtotal() const { return m_subtotal; } double shipping() const { return m_shipping; } double totalCost() const { return m_totalCost; } - - public slots: - void update(icclient_ord_order* order); + icclient_ord_order* c_order() { return order; } signals: void rowCountChanged(); @@ -73,6 +71,7 @@ namespace ICClient { double m_subtotal; double m_shipping; double m_totalCost; + icclient_ord_order* order; }; } -- cgit v1.2.3