summaryrefslogtreecommitdiff
path: root/qicclient
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-18 21:31:37 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-18 21:31:37 +0800
commit582ad4435408bdc19a007315e2c41770174cd606 (patch)
tree31abd30ae87ecf62410509e5d10663549206a8e1 /qicclient
parenta01bfc11355f041eb4225d5d104fee83e17db444 (diff)
Conform to updated libicclient function names
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/catalog.hxx6
-rw-r--r--qicclient/product.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx
index 244f4f0..4deeff3 100644
--- a/qicclient/catalog.hxx
+++ b/qicclient/catalog.hxx
@@ -13,11 +13,11 @@ namespace QICClient {
Q_OBJECT
public:
- Catalog(icclient_catalog* catalog, QObject* parent = nullptr);
+ Catalog(struct icclient_catalog* catalog, QObject* parent = nullptr);
~Catalog();
int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
- icclient_catalog const* constData() const { return m_data; }
+ struct icclient_catalog const* constData() const { return m_data; }
protected:
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
@@ -25,7 +25,7 @@ namespace QICClient {
private:
void addProduct(Product const& product);
QList<Product> products;
- icclient_catalog* m_data;
+ struct icclient_catalog* m_data;
};
}
diff --git a/qicclient/product.hxx b/qicclient/product.hxx
index 18b850a..980132b 100644
--- a/qicclient/product.hxx
+++ b/qicclient/product.hxx
@@ -20,7 +20,7 @@ namespace QICClient {
CrossSellRole
};
- Product(icclient_product* product) :
+ Product(struct icclient_product* product) :
price{product->price},
weight{product->weight}
{