From b8ef74e598edca39ab68c5319308a881c526e8f1 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: Fri, 31 Mar 2023 17:19:51 +0800 Subject: Method for removing an item from the cart --- interchange/ord.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'interchange') diff --git a/interchange/ord.hxx b/interchange/ord.hxx index 7405c55..a0cb885 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -47,17 +47,20 @@ namespace QInterchange { double totalCost() const { return m_totalCost; } void setProfile(QString const& profile); public slots: -// void remove(unsigned int const& indices); + void remove(const QString &name, + const QString &nextPage); void checkout(const Member& member); signals: void rowCountChanged(); void subtotalChanged(); void shippingChanged(); void totalCostChanged(); + void removed(const QString &response); void gotTransaction(QString const& response); protected: QHash roleNames() const Q_DECL_OVERRIDE; + void emitRemoval(const QString &response); void emitTransaction(QString const& response); private: -- cgit v1.2.3