author | harlekin <harlekin> | 2003-12-17 23:36:56 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-17 23:36:56 (UTC) |
commit | e996a7b13e2860280a63d089716958c7886cdc8d (patch) (side-by-side diff) | |
tree | c4a8f3da11570d31d947528eecd63a0cfaebc755 /noncore/net/mail/mainwindow.cpp | |
parent | d30140b2bb0f5399b7555646548296ceab65fa20 (diff) | |
download | opie-e996a7b13e2860280a63d089716958c7886cdc8d.zip opie-e996a7b13e2860280a63d089716958c7886cdc8d.tar.gz opie-e996a7b13e2860280a63d089716958c7886cdc8d.tar.bz2 |
pics/mail is the picture folder for the new mailer
Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 8e2132e..89530ab 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -167,53 +167,53 @@ void MainWindow::displayMail(QListViewItem*item) RecMail mail = ((MailListViewItem*)item)->data(); RecBody body = folderView->fetchBody(mail); ViewMail readMail( this ); readMail.setBody( body ); readMail.setMail( mail ); readMail.showMaximized(); readMail.exec(); if ( readMail.deleted ) { folderView->refreshCurrent(); } else { - ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgunseen") ); + ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "mail/kmmsgunseen") ); } } void MainWindow::slotDeleteMail() { if (!mailView->currentItem()) return; RecMail mail = ((MailListViewItem*)mailView->currentItem() )->data(); if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + mail.getFrom() + " - " + mail.getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { mail.Wrapper()->deleteMail( mail ); folderView->refreshCurrent(); } } MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) :QListViewItem(parent,item),mail_data() { } void MailListViewItem::showEntry() { if ( mail_data.getFlags().testBit( FLAG_ANSWERED ) == true) { - setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgreplied") ); + setPixmap( 0, Resource::loadPixmap( "mail/kmmsgreplied") ); } else if ( mail_data.getFlags().testBit( FLAG_SEEN ) == true ) { - setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgunseen") ); + setPixmap( 0, Resource::loadPixmap( "mail/kmmsgunseen") ); } else { - setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgnew") ); + setPixmap( 0, Resource::loadPixmap( "mail/kmmsgnew") ); } setText(1,mail_data.getSubject()); setText(2,mail_data.getFrom()); setText(3,mail_data.getDate()); } void MailListViewItem::storeData(const RecMail&data) { mail_data = data; } const RecMail& MailListViewItem::data()const |