summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:47:50 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-12 10:47:50 +0800
commit82f3e8426f4092831d25a97e05a91ce3663bc3c6 (patch)
treea57c4f93f447d67a82c2abe60b0dbaa319ebd6ef /interchange
parent4b8ef74da93c6ef4661c77373ea6818397e8d798 (diff)
Jenis parameter konstruksi Interchange berubah
Diffstat (limited to 'interchange')
-rw-r--r--interchange/ord.hxx4
1 files changed, 2 insertions, 2 deletions
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; }