#ifndef GRAPHLISTMODEL_H #define GRAPHLISTMODEL_H #include #include #include class GraphListModel : public UniversalListModel { Q_OBJECT Q_PROPERTY(int count READ count NOTIFY countChanged) public: GraphListModel(QObject* parent = 0); QList > container() const { return m_container; } Q_INVOKABLE GraphPoint* at(int i) const { return m_container.at(i).data(); } int count() const { return m_container.count(); } signals: void countChanged(int count); }; #endif // GRAPHLISTMODEL_H