From 3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 12 Sep 2012 14:57:44 +0200 Subject: initial un-exporter version --- lsmaterialmodel.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 lsmaterialmodel.cpp (limited to 'lsmaterialmodel.cpp') 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(); -} -- cgit v1.2.3