equal
deleted
inserted
replaced
35 class HB_AUTOTEST_EXPORT HbTreeModelIterator : public QObject, public HbModelIterator |
35 class HB_AUTOTEST_EXPORT HbTreeModelIterator : public QObject, public HbModelIterator |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
39 public: |
39 public: |
40 HbTreeModelIterator(QAbstractItemModel *model = 0, QModelIndex rootIndex = QModelIndex(), bool useCache = true); |
40 explicit HbTreeModelIterator(QAbstractItemModel *model = 0, QModelIndex rootIndex = QModelIndex(), bool useCache = true); |
41 ~HbTreeModelIterator(); |
41 ~HbTreeModelIterator(); |
42 |
42 |
43 int indexCount(const QModelIndex &parent = QModelIndex()) const; |
43 int indexCount(const QModelIndex &parent = QModelIndex()) const; |
44 int indexPosition(const QModelIndex &index) const; |
44 int indexPosition(const QModelIndex &index) const; |
45 QModelIndex index(int pos, const QModelIndex &parent = QModelIndex()) const; |
45 QModelIndex index(int pos, const QModelIndex &parent = QModelIndex()) const; |
61 private slots: |
61 private slots: |
62 void rowsInserted(const QModelIndex &parent, int start, int end); |
62 void rowsInserted(const QModelIndex &parent, int start, int end); |
63 void rowsRemoved(const QModelIndex &parent, int start, int end); |
63 void rowsRemoved(const QModelIndex &parent, int start, int end); |
64 void columnsInserted(const QModelIndex &parent, int start, int end); |
64 void columnsInserted(const QModelIndex &parent, int start, int end); |
65 void columnsRemoved(const QModelIndex &parent, int start, int end); |
65 void columnsRemoved(const QModelIndex &parent, int start, int end); |
|
66 void modelLayoutChanged(); |
66 |
67 |
67 private: |
68 private: |
68 Q_DECLARE_PRIVATE_D(d, HbTreeModelIterator) |
69 Q_DECLARE_PRIVATE_D(d, HbTreeModelIterator) |
69 Q_DISABLE_COPY(HbTreeModelIterator) |
70 Q_DISABLE_COPY(HbTreeModelIterator) |
70 |
71 |