summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-19 08:07:46 (UTC)
committer zautrix <zautrix>2005-06-19 08:07:46 (UTC)
commit98f69fd81c23d99d9fe80326d4bc4d3af23e18ec (patch) (side-by-side diff)
tree06472b263700b7d07030876c33f2535bf3ae51cb
parenta2e963324e6db541f322002c307b40f24747e036 (diff)
downloadkdepimpi-98f69fd81c23d99d9fe80326d4bc4d3af23e18ec.zip
kdepimpi-98f69fd81c23d99d9fe80326d4bc4d3af23e18ec.tar.gz
kdepimpi-98f69fd81c23d99d9fe80326d4bc4d3af23e18ec.tar.bz2
ompi select all
Diffstat (more/less context) (show 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
@@ -489,8 +489,16 @@ 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 )
{
if (!mailView->currentItem()) return;
@@ -519,8 +527,9 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
m->insertSeparator();
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();
m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) );
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h
index 48c5dda..bdd9058 100644
--- a/kmicromail/opiemail.h
+++ b/kmicromail/opiemail.h
@@ -50,8 +50,9 @@ protected slots:
virtual void slotMoveCopyMail();
virtual void slotMoveCopyAllMail();
virtual void reEditMail();
void clearSelection();
+ void selectAll();
void slotDownloadMail();
private:
ComposeMail* mCurrentComposer;
void closeViewMail(ViewMail * vm);