aboutsummaryrefslogtreecommitdiffstats
path: root/attachmenttablemodel.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 20:28:01 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 20:28:01 +0000
commit7daaccd9a16f1a39e7b0b4df94876de113a3523b (patch)
treec63943ab3a9b5429051257b28c75c875e5f5bd1e /attachmenttablemodel.cpp
parentstart of using own model for attachment-table-view, not all functionality (sa... (diff)
downloadgpg4usb-7daaccd9a16f1a39e7b0b4df94876de113a3523b.tar.gz
gpg4usb-7daaccd9a16f1a39e7b0b4df94876de113a3523b.zip
more work on tablemodel, attached files are saveable again
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@329 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'attachmenttablemodel.cpp')
-rw-r--r--attachmenttablemodel.cpp16
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);