diff options
author | Treeki <treeki@gmail.com> | 2012-09-12 14:57:44 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-12 14:57:44 +0200 |
commit | 3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch) | |
tree | d10e8cd4e462db28dd3c2f995905c4df57a20fed /lsmaterialmodel.cpp | |
parent | be8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff) | |
download | LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip |
initial un-exporter version
Diffstat (limited to '')
-rw-r--r-- | lsmaterialmodel.cpp | 23 |
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(); -} |