equal
deleted
inserted
replaced
53 void setSort(SortAttribute sortAttribute, Qt::SortOrder sortOrder = |
53 void setSort(SortAttribute sortAttribute, Qt::SortOrder sortOrder = |
54 Qt::AscendingOrder); |
54 Qt::AscendingOrder); |
55 void setIconSize(const QSize &size); |
55 void setIconSize(const QSize &size); |
56 QSize getIconSize() const; |
56 QSize getIconSize() const; |
57 QModelIndex root(); |
57 QModelIndex root(); |
58 CaEntry *entry(const QModelIndex &modelIndex) const; |
58 QSharedPointer<CaEntry> entry(const QModelIndex &modelIndex) const; |
59 void setSecondLineVisibility(bool secondLineVisibility); |
59 void setSecondLineVisibility(bool secondLineVisibility); |
60 bool secondLineVisibility() const; |
60 bool secondLineVisibility() const; |
61 QVariant displayRole(const QModelIndex &modelIndex) const; |
61 QVariant displayRole(const QModelIndex &modelIndex) const; |
62 void setParentId(int parentId); |
62 void setParentId(int parentId); |
63 void setFlagsOn(const EntryFlags &onFlags); |
63 void setFlagsOn(const EntryFlags &onFlags); |
73 |
73 |
74 // Function declarations |
74 // Function declarations |
75 void updateParentEntry(); |
75 void updateParentEntry(); |
76 void updateItemData(int id); |
76 void updateItemData(int id); |
77 void addItem(int id); |
77 void addItem(int id); |
78 void handleAddItems(QList<int> &itemsList); |
78 void addItemBlock(const QList<int> &itemsList); |
|
79 void handleAddItems(const QList<int> &itemsList); |
79 int itemRow(int id); |
80 int itemRow(int id); |
80 void removeItem(int id); |
81 void removeItem(int id); |
81 void removeItems(const QList<int> &itemsList); |
82 void removeItems(const QList<int> &itemsList); |
82 void updateLayout(); |
83 void updateLayout(); |
83 void connectSlots(); |
84 void connectSlots(); |
92 |
93 |
93 private: |
94 private: |
94 // data |
95 // data |
95 |
96 |
96 CaItemModel *const m_q; |
97 CaItemModel *const m_q; |
97 CaEntry *mParentEntry;//own |
98 QSharedPointer<CaEntry> mParentEntry; |
98 CaQuery mQuery; |
99 CaQuery mQuery; |
99 QSharedPointer<CaService> mService; |
100 QSharedPointer<CaService> mService; |
100 CaItemModelList mEntries; |
101 CaItemModelList mEntries; |
101 CaNotifier *mNotifier;//own |
102 CaNotifier *mNotifier;//own |
102 QSize mSize; |
103 QSize mSize; |