summaryrefslogtreecommitdiff
path: root/lsmaterialmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lsmaterialmodel.cpp')
-rw-r--r--lsmaterialmodel.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/lsmaterialmodel.cpp b/lsmaterialmodel.cpp
deleted file mode 100644
index 37f8f58..0000000
--- a/lsmaterialmodel.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "lsmaterialmodel.h"
-
-LSMaterialModel::LSMaterialModel(LYTMaterialContainer *container, QObject *parent) :
- QAbstractListModel(parent)
-{
- m_container = container;
-}
-
-
-int LSMaterialModel::rowCount(const QModelIndex &parent) const {
- return m_container->count();
-}
-
-QVariant LSMaterialModel::data(const QModelIndex &index, int role) const {
- if (index.isValid()) {
- switch (role) {
- case Qt::DisplayRole:
- return m_container->getNameOfIndex(index.row());
- }
- }
-
- return QVariant();
-}