author | jgf <jgf> | 2003-12-22 19:44:29 (UTC) |
---|---|---|
committer | jgf <jgf> | 2003-12-22 19:44:29 (UTC) |
commit | dd8b635cf7165524799743b0516ea51bef3210c8 (patch) (side-by-side diff) | |
tree | a4d8429c12f6c431947eba4d22baafbdf7eba057 /noncore/net/mail/accountview.cpp | |
parent | f0a4320f43abb1a24f80d6de1a94d39453945355 (diff) | |
download | opie-dd8b635cf7165524799743b0516ea51bef3210c8.zip opie-dd8b635cf7165524799743b0516ea51bef3210c8.tar.gz opie-dd8b635cf7165524799743b0516ea51bef3210c8.tar.bz2 |
new fancy icons from kde cvs
Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index 6bc8b8b..59e8bc0 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp @@ -298,25 +298,25 @@ RecBody AccountView::fetchBody(const RecMail&aMail) return view->fetchBody(aMail); } /** * MBOX Account stuff */ MBOXviewItem::MBOXviewItem( const QString&aPath, QListView *parent ) : AccountViewItem( parent ) { m_Path = aPath; wrapper = AbstractMail::getWrapper( m_Path ); - setPixmap( 0, PIXMAP_POP3FOLDER ); + setPixmap( 0, PIXMAP_LOCALFOLDER ); setText( 0, " Local Folders" ); setOpen( true ); } MBOXviewItem::~MBOXviewItem() { delete wrapper; } AbstractMail *MBOXviewItem::getWrapper() { return wrapper; @@ -349,29 +349,31 @@ RecBody MBOXviewItem::fetchBody( const RecMail &mail ) } MBOXfolderItem::~MBOXfolderItem() { delete folder; } MBOXfolderItem::MBOXfolderItem( Folder *folderInit, MBOXviewItem *parent , QListViewItem*after ) : AccountViewItem( parent,after ) { folder = folderInit; mbox = parent; - if (folder->getDisplayName().lower()!="inbox") { - setPixmap( 0, PIXMAP_POP3FOLDER ); - } else { + if (folder->getDisplayName().lower() == "outgoing") { + setPixmap( 0, PIXMAP_OUTBOXFOLDER ); + } else if (folder->getDisplayName().lower() == "inbox") { setPixmap( 0, PIXMAP_INBOXFOLDER); - } + } else { + setPixmap( 0, PIXMAP_MBOXFOLDER ); + } setText( 0, folder->getDisplayName() ); } void MBOXfolderItem::refresh(QList<RecMail>&target) { if (folder->may_select()) mbox->getWrapper()->listMessages( folder->getName(),target ); } RecBody MBOXfolderItem::fetchBody(const RecMail&aMail) { return mbox->getWrapper()->fetchBody(aMail); |