summaryrefslogtreecommitdiffabout
path: root/kmicromail/opiemail.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/opiemail.cpp9
1 files changed, 9 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
@@ -490,6 +490,14 @@ void OpieMail::clearSelection()
mailView->clearSelection();
}
+void OpieMail::selectAll()
+{
+ QListViewItem* item = mailView->firstChild ();
+ while ( item ) {
+ mailView->setSelected ( item, true );
+ item = item->nextSibling();
+ }
+}
void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
{
@@ -520,6 +528,7 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail()));
m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail()));
m->insertSeparator();
+ m->insertItem(i18n("Select all"),this,SLOT(selectAll()));
m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection()));
}
m->setFocus();