equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include "nmuiheaders.h" |
18 #include "nmuiheaders.h" |
19 |
19 |
20 #define AttachmentFileNameMaxLength 17 |
|
21 |
|
22 /*! |
20 /*! |
23 \class NmAttachmentList |
21 \class NmAttachmentList |
24 \brief Class for handling the attachment list |
22 \brief Class for handling the attachment list |
25 */ |
23 */ |
26 |
24 |
54 mDisplayFileName.append(displayName); |
52 mDisplayFileName.append(displayName); |
55 mAttachmentPartId.append(attachmentPartId); |
53 mAttachmentPartId.append(attachmentPartId); |
56 mFileSize.append(fileSize); |
54 mFileSize.append(fileSize); |
57 mListWidget.insertAttachment( |
55 mListWidget.insertAttachment( |
58 count() - 1, |
56 count() - 1, |
59 NmUtilities::truncate(displayName, AttachmentFileNameMaxLength), |
57 displayName, |
60 NmUtilities::attachmentSizeString(fileSize.toDouble())); |
58 NmUtilities::attachmentSizeString(fileSize.toDouble())); |
61 updateLayout(); |
59 updateLayout(); |
62 return count() - 1; |
60 return count() - 1; |
63 } |
61 } |
64 |
62 |