summaryrefslogtreecommitdiff
path: root/lsmaterialmodel.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /lsmaterialmodel.cpp
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to '')
-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();
-}