summaryrefslogtreecommitdiff
path: root/lsmaterialmodel.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-05 01:36:57 +0200
committerTreeki <treeki@gmail.com>2012-09-05 01:36:57 +0200
commitf928869357765e3a73501064408bb7bc0ee363ef (patch)
tree1c75962f64e4a7bfc38315c21ccadd83092aa0d4 /lsmaterialmodel.h
parent824b2fa6b700ec7b50f0388b649480a689cf22f3 (diff)
downloadLayoutStudio-f928869357765e3a73501064408bb7bc0ee363ef.tar.gz
LayoutStudio-f928869357765e3a73501064408bb7bc0ee363ef.zip
improving the material editor
Diffstat (limited to 'lsmaterialmodel.h')
-rw-r--r--lsmaterialmodel.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lsmaterialmodel.h b/lsmaterialmodel.h
new file mode 100644
index 0000000..6b75fd6
--- /dev/null
+++ b/lsmaterialmodel.h
@@ -0,0 +1,25 @@
+#ifndef LSMATERIALMODEL_H
+#define LSMATERIALMODEL_H
+
+#include <QAbstractListModel>
+#include "lyt/materials/materialcontainer.h"
+
+class LSMaterialModel : public QAbstractListModel
+{
+ Q_OBJECT
+public:
+ explicit LSMaterialModel(LYTMaterialContainer *container, QObject *parent = 0);
+
+ int rowCount(const QModelIndex &parent) const;
+ QVariant data(const QModelIndex &index, int role) const;
+
+private:
+ LYTMaterialContainer *m_container;
+
+signals:
+
+public slots:
+
+};
+
+#endif // LSMATERIALMODEL_H