equal
deleted
inserted
replaced
48 |
48 |
49 private slots: |
49 private slots: |
50 void handleLongPressed(QPointF point); |
50 void handleLongPressed(QPointF point); |
51 void handleItemActivated(); |
51 void handleItemActivated(); |
52 void orientationChanged(Qt::Orientation); |
52 void orientationChanged(Qt::Orientation); |
|
53 |
|
54 protected: |
|
55 virtual void changeEvent(QEvent *event); |
53 |
56 |
54 signals: |
57 signals: |
55 void itemActivated(int index); |
58 void itemActivated(int index); |
56 void longPressed(int index, QPointF point); |
59 void longPressed(int index, QPointF point); |
57 |
60 |
59 void init( ); |
62 void init( ); |
60 void constructUi(); |
63 void constructUi(); |
61 int findItem(const QObject *obj); |
64 int findItem(const QObject *obj); |
62 void insertItemToLayout(NmAttachmentListItem* item); |
65 void insertItemToLayout(NmAttachmentListItem* item); |
63 void rearrangeLayout(); |
66 void rearrangeLayout(); |
|
67 QColor checkColor(); |
64 |
68 |
65 private: |
69 private: |
66 Q_DISABLE_COPY(NmAttachmentListWidget) |
70 Q_DISABLE_COPY(NmAttachmentListWidget) |
67 QList<NmAttachmentListItem*> mItemList; //owned |
71 QList<NmAttachmentListItem*> mItemList; //owned |
68 QGraphicsGridLayout *mLayout; |
72 QGraphicsGridLayout *mLayout; |