From 5bd00e1499884e8458f58db86a6b92bc96da3e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 13 May 2023 18:17:49 +0800 Subject: Method for updating quantity --- interchange/ord.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'interchange') diff --git a/interchange/ord.hxx b/interchange/ord.hxx index 422d634..83fcce9 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -47,6 +47,10 @@ namespace QInterchange { double totalCost() const { return m_totalCost; } void setProfile(QString const& profile); public slots: + void update(const QString &name, + const int quantity = 0, + const QString &orderPage = "", + const QString &nextPage = ""); void remove(const QString &name, const QString &orderPage = "", const QString &nextPage = ""); @@ -56,12 +60,12 @@ namespace QInterchange { void subtotalChanged(); void shippingChanged(); void totalCostChanged(); - void removed(const QString &response); + void updated(const QString &response); void gotTransaction(QString const& response); protected: QHash roleNames() const Q_DECL_OVERRIDE; - void emitRemoval(const QString &response); + void emitUpdate(const QString &response); void emitTransaction(QString const& response); private: -- cgit v1.2.3