~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

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

  • Committer: Zsombor Egri
  • Date: 2015-11-16 06:35:05 UTC
  • mfrom: (1664.1.1 listitemSelectModeBugs)
  • Revision ID: zsombor.egri@canonical.com-20151116063505-cwn2qfks7qzk10g9
re-sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    Q_CLASSINFO("DefaultProperty", "listItemData")
48
48
    // 1.3
49
49
    Q_PROPERTY(UCListItemExpansion* expansion READ expansion CONSTANT REVISION 1)
 
50
    Q_PROPERTY(bool swipeEnabled READ isSwipeEnabled WRITE setSwipeEnabled NOTIFY swipeEnabledChanged FINAL REVISION 1)
50
51
public:
51
52
    explicit UCListItem(QQuickItem *parent = 0);
52
53
    ~UCListItem();
65
66
    void resetHighlightColor();
66
67
    // 1.3
67
68
    UCListItemExpansion *expansion();
 
69
    bool isSwipeEnabled() const;
 
70
    void setSwipeEnabled(bool swipeEnabled);
68
71
 
69
72
protected:
70
73
    virtual QObject *attachedViewItems(QObject *object, bool create);
92
95
    void selectModeChanged();
93
96
    void actionChanged();
94
97
    void listItemChildrenChanged();
 
98
    Q_REVISION(1) void swipeEnabledChanged();
95
99
 
96
100
    void clicked();
97
101
    void pressAndHold();