From 82f3e8426f4092831d25a97e05a91ce3663bc3c6 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: Sun, 12 Mar 2023 10:47:50 +0800 Subject: Jenis parameter konstruksi Interchange berubah --- interchange/ord.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interchange/ord.hxx') diff --git a/interchange/ord.hxx b/interchange/ord.hxx index af06d52..2d18891 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -33,13 +33,13 @@ namespace QInterchange { Q_PROPERTY(double totalCost READ totalCost NOTIFY totalCostChanged) public: - explicit Ord(QObject* parent = nullptr); + explicit Ord(struct interchange_ord_order* order + = nullptr, QObject* parent = nullptr); ~Ord(); int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; struct interchange_ord_order* data() { return m_data; } - void setData(struct interchange_ord_order* order); double subtotal() const { return m_subtotal; } double shipping() const { return m_shipping; } double totalCost() const { return m_totalCost; } -- cgit v1.2.3