Index: sources/model/MListModel.h =================================================================== diff -u -rc1e50347c78096b626b2cd1ef32a33b439e88bdd -raacca8cc53f5e4ff5abb6d7df3d5ad48c915645c --- sources/model/MListModel.h (.../MListModel.h) (revision c1e50347c78096b626b2cd1ef32a33b439e88bdd) +++ sources/model/MListModel.h (.../MListModel.h) (revision aacca8cc53f5e4ff5abb6d7df3d5ad48c915645c) @@ -17,10 +17,8 @@ { Q_OBJECT - Q_PROPERTY(int count READ rowCount NOTIFY countChanged STORED false) - public: - explicit MListModel(QObject *parent = nullptr); + explicit MListModel(QObject *parent = nullptr) : QAbstractListModel (parent) { } QHash roleNames ( ) const override; int rowCount (const QModelIndex & = QModelIndex() ) const override; @@ -33,12 +31,9 @@ void updateData (const int vRow, const int vRole, const QVariant& vValue ); MListModel &operator = (const QList> &src ); -public Q_SLOTS: +public slots: QVariantMap get (int vRow ) const; // Exposed to QML -Q_SIGNALS: - void countChanged(); - private: QList> _data; QHash _roleNames;