~zsombi/ubuntu-ui-toolkit/listitem-master

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/uclistitem.h

  • Committer: Zsombor Egri
  • Date: 2014-12-02 12:41:26 UTC
  • mfrom: (1176.2.62 20-divider)
  • Revision ID: zsombor.egri@canonical.com-20141202124126-66cb07ycs8b5ckdp
20-divider merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "ucstyleditembase.h"
22
22
 
23
23
class UCListItemContent;
 
24
class UCListItemDivider;
24
25
class UCListItemPrivate;
25
26
class UCListItem : public UCStyledItemBase
26
27
{
27
28
    Q_OBJECT
28
29
    Q_PROPERTY(QQuickItem *contentItem READ contentItem CONSTANT)
 
30
    Q_PROPERTY(UCListItemDivider *divider READ divider CONSTANT)
29
31
    Q_PROPERTY(bool pressed READ pressed NOTIFY pressedChanged)
30
32
    Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
31
33
    Q_PROPERTY(QColor highlightColor READ highlightColor WRITE setHighlightColor NOTIFY highlightColorChanged)
37
39
    ~UCListItem();
38
40
 
39
41
    QQuickItem *contentItem() const;
 
42
    UCListItemDivider *divider() const;
40
43
    bool pressed() const;
41
44
    QColor color() const;
42
45
    void setColor(const QColor &color);
44
47
    void setHighlightColor(const QColor &color);
45
48
 
46
49
protected:
 
50
    void componentComplete();
47
51
    QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data);
48
52
    void itemChange(ItemChange change, const ItemChangeData &data);
49
53
    void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);