From 98f69fd81c23d99d9fe80326d4bc4d3af23e18ec Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 19 Jun 2005 08:07:46 +0000 Subject: ompi select all --- 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(); 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: virtual void slotMoveCopyAllMail(); virtual void reEditMail(); void clearSelection(); + void selectAll(); void slotDownloadMail(); private: ComposeMail* mCurrentComposer; -- cgit v0.9.0.2