diff options
Diffstat (limited to 'qicclient/catalog.hxx')
| -rw-r--r-- | qicclient/catalog.hxx | 14 | 
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();  |