diff options
Diffstat (limited to 'attachmenttablemodel.cpp')
-rw-r--r-- | attachmenttablemodel.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/attachmenttablemodel.cpp b/attachmenttablemodel.cpp index 6ca640b..ef30f84 100644 --- a/attachmenttablemodel.cpp +++ b/attachmenttablemodel.cpp @@ -24,6 +24,22 @@ void AttachmentTableModel::add(MimePart mp) { reset(); } +MimePart AttachmentTableModel::getSelectedMimePart(QModelIndex index){ + return listOfMimeparts.at(index.row()); +} + +MimePart AttachmentTableModel::getMimePart(int index){ + return listOfMimeparts.at(index); +} + +/*QList<MimePart> AttachmentTableModel::getSelectedMimeParts(QModelIndexList indexes){ + + foreach(QModelIndex index, indexes) { + qDebug() << "ir: "<< index.row(); + } + +}*/ + int AttachmentTableModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); |