equal
deleted
inserted
replaced
33 |
33 |
34 public: |
34 public: |
35 NmAttachmentListWidget(QGraphicsItem *parent = 0); |
35 NmAttachmentListWidget(QGraphicsItem *parent = 0); |
36 virtual ~NmAttachmentListWidget(); |
36 virtual ~NmAttachmentListWidget(); |
37 void setTextColor(const QColor color); |
37 void setTextColor(const QColor color); |
|
38 void setBackgroundColor(const QColor color); |
38 void insertAttachment(const int index, const QString &fileName, const QString &fileSize); |
39 void insertAttachment(const int index, const QString &fileName, const QString &fileSize); |
39 void removeAttachment(const int index); |
40 void removeAttachment(const int index); |
40 void setAttachmentSize(int index, const QString &fileSize); |
41 void setAttachmentSize(int index, const QString &fileSize); |
41 int count() const; |
42 int count() const; |
42 int progressValue(int index) const; |
43 int progressValue(int index) const; |
70 Q_DISABLE_COPY(NmAttachmentListWidget) |
71 Q_DISABLE_COPY(NmAttachmentListWidget) |
71 QList<NmAttachmentListItem*> mItemList; //owned |
72 QList<NmAttachmentListItem*> mItemList; //owned |
72 QGraphicsGridLayout *mLayout; |
73 QGraphicsGridLayout *mLayout; |
73 Qt::Orientation mOrientation; |
74 Qt::Orientation mOrientation; |
74 QColor mTextColor; |
75 QColor mTextColor; |
|
76 QColor mBackgroundColor; |
75 }; |
77 }; |
76 |
78 |
77 #endif // NMATTACHMENTLISTWIDGET_H_ |
79 #endif // NMATTACHMENTLISTWIDGET_H_ |