emailuis/nmailui/src/nmeditorheader.cpp
changeset 56 15bc1d5d6267
parent 51 d845db10c0d4
child 57 ae34e1715e21
equal deleted inserted replaced
51:d845db10c0d4 56:15bc1d5d6267
   404 void NmEditorHeader::addAttachment(
   404 void NmEditorHeader::addAttachment(
   405     const QString &fileName, const QString &fileSize, const NmId &nmid)
   405     const QString &fileName, const QString &fileSize, const NmId &nmid)
   406 {
   406 {
   407     NM_FUNCTION;
   407     NM_FUNCTION;
   408     
   408     
       
   409     mAttachmentList->insertAttachment(fileName, fileSize, nmid);
       
   410     
   409     if (!mAttachmentList->listWidget().isVisible()) {
   411     if (!mAttachmentList->listWidget().isVisible()) {
   410         mAttachmentList->listWidget().show();
   412         mAttachmentList->listWidget().show();
   411     }
   413     }
   412 
   414 
   413     mAttachmentList->insertAttachment(fileName, fileSize, nmid);
       
   414     sendHeaderHeightChanged();
   415     sendHeaderHeightChanged();
   415 }
   416 }
   416 
   417 
   417 /*!
   418 /*!
   418    Remove attachment from the list. This function is used when
   419    Remove attachment from the list. This function is used when