summaryrefslogtreecommitdiff
path: root/qicclient/catalog.hxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
commit228307e324190e760dc298ef84c3ffb29d4c8237 (patch)
tree36f97ddb46c12ac98fb81b5969dbf6c64b474702 /qicclient/catalog.hxx
parenta2a5964bddaf61c830f9a2a2a9bf6226c0168e64 (diff)
C++ instances keep a pointer to the C version
Diffstat (limited to 'qicclient/catalog.hxx')
-rw-r--r--qicclient/catalog.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx
index dfa7a7c..7f1dcfd 100644
--- a/qicclient/catalog.hxx
+++ b/qicclient/catalog.hxx
@@ -17,6 +17,7 @@ namespace ICClient {
Catalog(QObject* parent = nullptr) : QAbstractListModel{parent} {}
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* c_catalog() const { return catalog; }
public slots:
void update(Catalog* catalog);
@@ -30,6 +31,7 @@ namespace ICClient {
private:
void addProduct(Product const& product);
QList<Product> products;
+ icclient_catalog* catalog;
};
}