author | harlekin <harlekin> | 2003-12-12 14:50:30 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-12 14:50:30 (UTC) |
commit | ab38828e927334e5e1ad66bf6682099068f4c5e0 (patch) (unidiff) | |
tree | 88479ca55851b45bc8c51aaa5216bcd77318049e | |
parent | 1aa69d74df6ac0ae182815e03fe57cfee5702d5a (diff) | |
download | opie-ab38828e927334e5e1ad66bf6682099068f4c5e0.zip opie-ab38828e927334e5e1ad66bf6682099068f4c5e0.tar.gz opie-ab38828e927334e5e1ad66bf6682099068f4c5e0.tar.bz2 |
beauty
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 21 | ||||
-rw-r--r-- | pics/opiemail/kmmsgnew.png | bin | 0 -> 481 bytes | |||
-rw-r--r-- | pics/opiemail/kmmsgunseen.png | bin | 0 -> 396 bytes |
3 files changed, 15 insertions, 6 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 1d6e901..f0a915d 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | 6 | ||
7 | #include <qpe/qpeapplication.h> | 7 | #include <qpe/qpeapplication.h> |
8 | #include <qpe/resource.h> | ||
8 | 9 | ||
9 | #include "defines.h" | 10 | #include "defines.h" |
10 | #include "mainwindow.h" | 11 | #include "mainwindow.h" |
@@ -81,6 +82,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
81 | layout->addWidget( folderView ); | 82 | layout->addWidget( folderView ); |
82 | 83 | ||
83 | mailView = new QListView( view ); | 84 | mailView = new QListView( view ); |
85 | mailView->addColumn( tr( "Status" ) ); | ||
84 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); | 86 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); |
85 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); | 87 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); |
86 | mailView->addColumn( tr( "Date" )); | 88 | mailView->addColumn( tr( "Date" )); |
@@ -121,9 +123,10 @@ void MainWindow::slotAdjustColumns() | |||
121 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 123 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
122 | if ( hidden ) folderView->hide(); | 124 | if ( hidden ) folderView->hide(); |
123 | 125 | ||
124 | mailView->setColumnWidth( 0, mailView->visibleWidth() - 130 ); | 126 | mailView->setColumnWidth( 0, 10 ); |
125 | mailView->setColumnWidth( 1, 80 ); | 127 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); |
126 | mailView->setColumnWidth( 2, 50 ); | 128 | mailView->setColumnWidth( 2, 80 ); |
129 | mailView->setColumnWidth( 3, 50 ); | ||
127 | } | 130 | } |
128 | 131 | ||
129 | void MainWindow::slotShowFolders( bool show ) | 132 | void MainWindow::slotShowFolders( bool show ) |
@@ -159,6 +162,7 @@ void MainWindow::displayMail(QListViewItem*item) | |||
159 | readMail.setMail( mail ); | 162 | readMail.setMail( mail ); |
160 | readMail.showMaximized(); | 163 | readMail.showMaximized(); |
161 | readMail.exec(); | 164 | readMail.exec(); |
165 | ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgunseen") ); | ||
162 | } | 166 | } |
163 | 167 | ||
164 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * after ) | 168 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * after ) |
@@ -168,9 +172,14 @@ MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * after | |||
168 | 172 | ||
169 | void MailListViewItem::showEntry() | 173 | void MailListViewItem::showEntry() |
170 | { | 174 | { |
171 | setText(0,mail_data.getSubject()); | 175 | if ( mail_data.getFlags().testBit( FLAG_SEEN ) == true ) { |
172 | setText(1,mail_data.getFrom()); | 176 | setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgunseen") ); |
173 | setText(2,mail_data.getDate()); | 177 | } else { |
178 | setPixmap( 0, Resource::loadPixmap( "opiemail/kmmsgnew") ); | ||
179 | } | ||
180 | setText(1,mail_data.getSubject()); | ||
181 | setText(2,mail_data.getFrom()); | ||
182 | setText(3,mail_data.getDate()); | ||
174 | } | 183 | } |
175 | 184 | ||
176 | void MailListViewItem::storeData(const RecMail&data) | 185 | void MailListViewItem::storeData(const RecMail&data) |
diff --git a/pics/opiemail/kmmsgnew.png b/pics/opiemail/kmmsgnew.png new file mode 100644 index 0000000..245d156 --- a/dev/null +++ b/pics/opiemail/kmmsgnew.png | |||
Binary files differ | |||
diff --git a/pics/opiemail/kmmsgunseen.png b/pics/opiemail/kmmsgunseen.png new file mode 100644 index 0000000..8e3de20 --- a/dev/null +++ b/pics/opiemail/kmmsgunseen.png | |||
Binary files differ | |||