Diffstat (limited to 'noncore/unsupported/mail2/composer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/composer.cpp | 4 |
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 | |||
@@ -17,13 +17,13 @@ | |||
17 | #include "composer.h" | 17 | #include "composer.h" |
18 | #include "rename.h" | 18 | #include "rename.h" |
19 | 19 | ||
20 | AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment) | 20 | AttachViewItem::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 | ||
28 | Composer::Composer(QWidget *parent, const char *name, WFlags fl) | 28 | Composer::Composer(QWidget *parent, const char *name, WFlags fl) |
29 | : ComposerBase(parent, name, fl), _inLoop(false) | 29 | : ComposerBase(parent, name, fl), _inLoop(false) |
@@ -228,13 +228,13 @@ void Composer::slotAddAttach() | |||
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 | ||
239 | void Composer::slotDelAttach() | 239 | void Composer::slotDelAttach() |
240 | { | 240 | { |