summaryrefslogtreecommitdiff
path: root/qicclient/catalog.hxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-28 09:32:04 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-28 09:32:04 +0800
commit5d4ca393157362cb9e82022c1f66c61a66ad9077 (patch)
treeb5f1cf586c3e3d9a3fba45631e80fe543139428c /qicclient/catalog.hxx
parent0d2a18b15d45d612f3b9ba92d7b7af23be7d444f (diff)
Catalog updates from fellow C++ catalog
Diffstat (limited to 'qicclient/catalog.hxx')
-rw-r--r--qicclient/catalog.hxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx
index 317ea91..dfa7a7c 100644
--- a/qicclient/catalog.hxx
+++ b/qicclient/catalog.hxx
@@ -13,17 +13,13 @@ namespace ICClient {
Q_OBJECT
public:
- explicit 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;
+ Catalog(icclient_catalog* catalog, QObject* parent = nullptr);
+ 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;
public slots:
- void update(icclient_catalog* catalog);
+ void update(Catalog* catalog);
signals:
void updated();