diff options
Diffstat (limited to 'lsscenemodel.h')
-rw-r--r-- | lsscenemodel.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lsscenemodel.h b/lsscenemodel.h new file mode 100644 index 0000000..3a26fc1 --- /dev/null +++ b/lsscenemodel.h @@ -0,0 +1,29 @@ +#ifndef LSSCENEMODEL_H +#define LSSCENEMODEL_H + +#include <QAbstractItemModel> +#include "lyt/layout.h" + +class LSSceneModel : public QAbstractItemModel { + Q_OBJECT +public: + explicit LSSceneModel(LYTLayout *layout, QObject *parent = 0); + + LYTLayout *layout() const { return m_layout; } + + QModelIndex index(int row, int column, const QModelIndex &parent) const; + QModelIndex parent(const QModelIndex &child) const; + int rowCount(const QModelIndex &parent) const; + int columnCount(const QModelIndex &parent) const; + QVariant data(const QModelIndex &index, int role) const; + +private: + LYTLayout *m_layout; + +signals: + +public slots: + +}; + +#endif // LSSCENEMODEL_H |