equal
deleted
inserted
replaced
122 (mDocumentLoader->findWidget(NMUI_EDITOR_ATTACHMENT_LIST)); |
122 (mDocumentLoader->findWidget(NMUI_EDITOR_ATTACHMENT_LIST)); |
123 // Create attachment list handling object |
123 // Create attachment list handling object |
124 mAttachmentList = new NmAttachmentList(*mAttachmentListWidget); |
124 mAttachmentList = new NmAttachmentList(*mAttachmentListWidget); |
125 mAttachmentList->setParent(this); // ownership changes |
125 mAttachmentList->setParent(this); // ownership changes |
126 mAttachmentListWidget->hide(); |
126 mAttachmentListWidget->hide(); |
|
127 mLayout->removeItem(&mAttachmentList->listWidget()); |
127 |
128 |
128 // Add priority icon |
129 // Add priority icon |
129 mPriorityIcon = qobject_cast<HbLabel *> |
130 mPriorityIcon = qobject_cast<HbLabel *> |
130 (mDocumentLoader->findWidget(NMUI_EDITOR_PRIORITY_ICON)); |
131 (mDocumentLoader->findWidget(NMUI_EDITOR_PRIORITY_ICON)); |
131 mPriorityIcon->hide(); |
132 mPriorityIcon->hide(); |
407 NM_FUNCTION; |
408 NM_FUNCTION; |
408 |
409 |
409 mAttachmentList->insertAttachment(fileName, fileSize, nmid); |
410 mAttachmentList->insertAttachment(fileName, fileSize, nmid); |
410 |
411 |
411 if (!mAttachmentList->listWidget().isVisible()) { |
412 if (!mAttachmentList->listWidget().isVisible()) { |
|
413 // attachment list is inserted just before the body widget (see docml). |
|
414 mLayout->insertItem(mLayout->count() - 1, &mAttachmentList->listWidget()); |
412 mAttachmentList->listWidget().show(); |
415 mAttachmentList->listWidget().show(); |
413 } |
416 } |
414 |
417 |
415 sendHeaderHeightChanged(); |
418 sendHeaderHeightChanged(); |
416 } |
419 } |