summaryrefslogtreecommitdiff
path: root/qicclient
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2020-12-01 17:09:46 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2020-12-01 17:09:46 +0800
commitef5fdbb1c96b88d9868abbc779a4435501125e45 (patch)
treef8fffe5ec79a7a64a6ffeb14bbb4372b1983c50d /qicclient
parent3e731fa39cb3d10d0eb3d3aa26135a22b9e112e5 (diff)
Checkout function
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/member.hxx1
-rw-r--r--qicclient/ord.hxx7
2 files changed, 4 insertions, 4 deletions
diff --git a/qicclient/member.hxx b/qicclient/member.hxx
index 864d353..fc3c77e 100644
--- a/qicclient/member.hxx
+++ b/qicclient/member.hxx
@@ -83,6 +83,7 @@ namespace QICClient {
QString const& country() const { return m_country; }
QString const& phoneDay() const { return m_phoneDay; }
QString const& email() const { return m_email; }
+ icclient_member* data() { return m_data; }
void setUserName(QString const& userName);
void setUserNick(QString const& userNick);
diff --git a/qicclient/ord.hxx b/qicclient/ord.hxx
index fc7802a..697daa7 100644
--- a/qicclient/ord.hxx
+++ b/qicclient/ord.hxx
@@ -3,6 +3,7 @@
#include <QAbstractListModel>
#include <icclient/ord.h>
+#include "member.hxx"
#include "product.hxx"
namespace QICClient {
@@ -56,11 +57,9 @@ namespace QICClient {
double shipping() const { return m_shipping; }
double totalCost() const { return m_totalCost; }
- /*
public slots:
- void remove(unsigned int const& indices);
- void checkout();
- */
+// void remove(unsigned int const& indices);
+ void checkout(Member& member);
signals:
void rowCountChanged();