38
38
struct PlaceTreeModelPrivate;
39
class GWENVIEWLIB_EXPORT PlaceTreeModel : public QAbstractItemModel {
39
class GWENVIEWLIB_EXPORT PlaceTreeModel : public QAbstractItemModel
42
PlaceTreeModel(QObject*);
45
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
46
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
47
virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
48
virtual QModelIndex parent(const QModelIndex& index) const;
49
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
50
virtual bool hasChildren(const QModelIndex& parent) const;
51
virtual bool canFetchMore(const QModelIndex& parent) const;
52
virtual void fetchMore(const QModelIndex& parent);
54
KUrl urlForIndex(const QModelIndex&) const;
43
PlaceTreeModel(QObject*);
46
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
47
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
48
virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
49
virtual QModelIndex parent(const QModelIndex& index) const;
50
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
51
virtual bool hasChildren(const QModelIndex& parent) const;
52
virtual bool canFetchMore(const QModelIndex& parent) const;
53
virtual void fetchMore(const QModelIndex& parent);
55
KUrl urlForIndex(const QModelIndex&) const;
57
void slotPlacesRowsInserted(const QModelIndex&, int start, int end);
58
void slotPlacesRowsAboutToBeRemoved(const QModelIndex&, int start, int end);
59
void slotDirRowsAboutToBeInserted(const QModelIndex&, int start, int end);
60
void slotDirRowsInserted(const QModelIndex&, int start, int end);
61
void slotDirRowsAboutToBeRemoved(const QModelIndex&, int start, int end);
62
void slotDirRowsRemoved(const QModelIndex&, int start, int end);
58
void slotPlacesRowsInserted(const QModelIndex&, int start, int end);
59
void slotPlacesRowsAboutToBeRemoved(const QModelIndex&, int start, int end);
60
void slotDirRowsAboutToBeInserted(const QModelIndex&, int start, int end);
61
void slotDirRowsInserted(const QModelIndex&, int start, int end);
62
void slotDirRowsAboutToBeRemoved(const QModelIndex&, int start, int end);
63
void slotDirRowsRemoved(const QModelIndex&, int start, int end);
65
friend struct PlaceTreeModelPrivate;
66
PlaceTreeModelPrivate* const d;
66
friend struct PlaceTreeModelPrivate;
67
PlaceTreeModelPrivate* const d;
72
72
#endif /* PLACETREEMODEL_H */