summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/opiemail.cpp9
-rw-r--r--kmicromail/opiemail.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 8ac3451..e296d9c 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -492,2 +492,10 @@ void OpieMail::clearSelection()
}
+void OpieMail::selectAll()
+{
+ QListViewItem* item = mailView->firstChild ();
+ while ( item ) {
+ mailView->setSelected ( item, true );
+ item = item->nextSibling();
+ }
+}
@@ -522,2 +530,3 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
m->insertSeparator();
+ m->insertItem(i18n("Select all"),this,SLOT(selectAll()));
m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection()));
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h
index 48c5dda..bdd9058 100644
--- a/kmicromail/opiemail.h
+++ b/kmicromail/opiemail.h
@@ -53,2 +53,3 @@ protected slots:
void clearSelection();
+ void selectAll();
void slotDownloadMail();