summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composer.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/composer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp
index 7f65dba..c36d973 100644
--- a/noncore/unsupported/mail2/composer.cpp
+++ b/noncore/unsupported/mail2/composer.cpp
@@ -11,25 +11,25 @@
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12 12
13#include "addresspicker.h" 13#include "addresspicker.h"
14#include "listviewplus.h" 14#include "listviewplus.h"
15#include "smtphandler.h" 15#include "smtphandler.h"
16#include "attachdiag.h" 16#include "attachdiag.h"
17#include "composer.h" 17#include "composer.h"
18#include "rename.h" 18#include "rename.h"
19 19
20AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment) 20AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment)
21 : QListViewItem(parent), _attachment(attachment) 21 : QListViewItem(parent), _attachment(attachment)
22{ 22{
23 setPixmap(0, _attachment.docLnk()->pixmap().isNull() ? Resource::loadPixmap("UnknownDocument-14") : _attachment.docLnk()->pixmap()); 23 setPixmap(0, _attachment.docLnk().pixmap().isNull() ? Resource::loadPixmap("UnknownDocument-14") : _attachment.docLnk().pixmap());
24 setText(0, _attachment.newName().isEmpty() ? _attachment.fileName() : _attachment.newName()); 24 setText(0, _attachment.newName().isEmpty() ? _attachment.fileName() : _attachment.newName());
25 setText(1, _attachment.description()); 25 setText(1, _attachment.description());
26} 26}
27 27
28Composer::Composer(QWidget *parent, const char *name, WFlags fl) 28Composer::Composer(QWidget *parent, const char *name, WFlags fl)
29 : ComposerBase(parent, name, fl), _inLoop(false) 29 : ComposerBase(parent, name, fl), _inLoop(false)
30{ 30{
31 abort->setEnabled(false); 31 abort->setEnabled(false);
32 to->setFocus(); 32 to->setFocus();
33 33
34 connect(sendmail, SIGNAL(activated()), SLOT(slotSendMail())); 34 connect(sendmail, SIGNAL(activated()), SLOT(slotSendMail()));
35 connect(addressbook, SIGNAL(activated()), SLOT(slotOpenAddressPicker())); 35 connect(addressbook, SIGNAL(activated()), SLOT(slotOpenAddressPicker()));
@@ -222,23 +222,23 @@ void Composer::slotOpenAddressPicker()
222 } 222 }
223 } 223 }
224} 224}
225 225
226void Composer::slotAddAttach() 226void Composer::slotAddAttach()
227{ 227{
228 DocLnk lnk = AttachDiag::getFile(this); 228 DocLnk lnk = AttachDiag::getFile(this);
229 if (lnk.name().isEmpty()) return; 229 if (lnk.name().isEmpty()) return;
230 230
231 Attachment attachment; 231 Attachment attachment;
232 attachment.setFileName(lnk.file()); 232 attachment.setFileName(lnk.file());
233 attachment.setNewName(lnk.name()); 233 attachment.setNewName(lnk.name());
234 attachment.setDocLnk(&lnk); 234 attachment.setDocLnk(lnk);
235 235
236 (void) new AttachViewItem(attachView, attachment); 236 (void) new AttachViewItem(attachView, attachment);
237} 237}
238 238
239void Composer::slotDelAttach() 239void Composer::slotDelAttach()
240{ 240{
241 if (attachView->currentItem() == NULL) return; 241 if (attachView->currentItem() == NULL) return;
242 attachView->takeItem(attachView->currentItem()); 242 attachView->takeItem(attachView->currentItem());
243} 243}
244 244