-rw-r--r-- | kmicromail/opiemail.cpp | 9 | ||||
-rw-r--r-- | kmicromail/opiemail.h | 1 |
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 | |||
@@ -490,6 +490,14 @@ void OpieMail::clearSelection() | |||
490 | mailView->clearSelection(); | 490 | mailView->clearSelection(); |
491 | 491 | ||
492 | } | 492 | } |
493 | void OpieMail::selectAll() | ||
494 | { | ||
495 | QListViewItem* item = mailView->firstChild (); | ||
496 | while ( item ) { | ||
497 | mailView->setSelected ( item, true ); | ||
498 | item = item->nextSibling(); | ||
499 | } | ||
500 | } | ||
493 | 501 | ||
494 | void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) | 502 | void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) |
495 | { | 503 | { |
@@ -520,6 +528,7 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int ) | |||
520 | m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); | 528 | m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); |
521 | m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); | 529 | m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); |
522 | m->insertSeparator(); | 530 | m->insertSeparator(); |
531 | m->insertItem(i18n("Select all"),this,SLOT(selectAll())); | ||
523 | m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); | 532 | m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection())); |
524 | } | 533 | } |
525 | m->setFocus(); | 534 | m->setFocus(); |
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h index 48c5dda..bdd9058 100644 --- a/kmicromail/opiemail.h +++ b/kmicromail/opiemail.h | |||
@@ -51,6 +51,7 @@ protected slots: | |||
51 | virtual void slotMoveCopyAllMail(); | 51 | virtual void slotMoveCopyAllMail(); |
52 | virtual void reEditMail(); | 52 | virtual void reEditMail(); |
53 | void clearSelection(); | 53 | void clearSelection(); |
54 | void selectAll(); | ||
54 | void slotDownloadMail(); | 55 | void slotDownloadMail(); |
55 | private: | 56 | private: |
56 | ComposeMail* mCurrentComposer; | 57 | ComposeMail* mCurrentComposer; |