equal
deleted
inserted
replaced
47 ParentIdRole, |
47 ParentIdRole, |
48 TypeRole, |
48 TypeRole, |
49 FlagsRole, |
49 FlagsRole, |
50 TextRole,//contains title represented as QString, |
50 TextRole,//contains title represented as QString, |
51 FullTextRole, //'title description' convinient for operations such as search |
51 FullTextRole, //'title description' convinient for operations such as search |
52 UninstalRole //contains progress status as decimal number in QString |
52 UninstalRole, //contains progress status as decimal number in QString |
|
53 CollectionTitleRole //contains title represented as QString, |
|
54 |
53 }; |
55 }; |
54 |
56 |
55 // Function declarations |
57 // Function declarations |
56 CaItemModel(const CaQuery &query, QObject *parent = 0); |
58 CaItemModel(const CaQuery &query, QObject *parent = 0); |
57 ~CaItemModel(); |
59 ~CaItemModel(); |
76 void setParentId(int parentId); |
78 void setParentId(int parentId); |
77 void setFlagsOn(const EntryFlags &onFlags); |
79 void setFlagsOn(const EntryFlags &onFlags); |
78 void setFlagsOff(const EntryFlags &offFlags); |
80 void setFlagsOff(const EntryFlags &offFlags); |
79 QSharedPointer<CaEntry> entry(const QModelIndex &index) const; |
81 QSharedPointer<CaEntry> entry(const QModelIndex &index) const; |
80 |
82 |
81 signals: |
83 QList<int> getUninstallingEntriesIds(int componentId); |
|
84 void updateProgress(int id, int valueOfProgress); |
|
85 |
|
86 |
|
87 signals: |
82 |
88 |
83 void scrollTo(int row, QAbstractItemView::ScrollHint hint = |
89 void scrollTo(int row, QAbstractItemView::ScrollHint hint = |
84 QAbstractItemView::EnsureVisible); |
90 QAbstractItemView::EnsureVisible); |
85 void empty(bool value); |
91 void empty(bool value); |
86 |
92 void countChange(); |
|
93 |
87 protected: |
94 protected: |
88 // data |
95 // data |
89 |
96 |
90 CaItemModelPrivate * const m_d; |
97 CaItemModelPrivate * const m_d; |
91 friend class CaItemModelPrivate; |
98 friend class CaItemModelPrivate; |