Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kdirmodel.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
69 | */ | 69 | */ | ||
70 | KDirLister *dirLister() const; | 70 | KDirLister *dirLister() const; | ||
71 | 71 | | |||
72 | /** | 72 | /** | ||
73 | * Return the fileitem for a given index. This is O(1), i.e. fast. | 73 | * Return the fileitem for a given index. This is O(1), i.e. fast. | ||
74 | */ | 74 | */ | ||
75 | KFileItem itemForIndex(const QModelIndex &index) const; | 75 | KFileItem itemForIndex(const QModelIndex &index) const; | ||
76 | 76 | | |||
77 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 0) | ||||
77 | /** | 78 | /** | ||
78 | * Return the index for a given kfileitem. This can be slow. | 79 | * Return the index for a given kfileitem. This can be slow. | ||
79 | * @deprecated use the method that takes a KFileItem by value | 80 | * @deprecated Since 4.0, use the method that takes a KFileItem by value | ||
80 | */ | 81 | */ | ||
81 | #ifndef KIOWIDGETS_NO_DEPRECATED | 82 | KIOWIDGETS_DEPRECATED_VERSION(4, 0, "Use KDirModel::indexForItem(const KFileItem &)") | ||
82 | KIOWIDGETS_DEPRECATED QModelIndex indexForItem(const KFileItem *) const; | 83 | QModelIndex indexForItem(const KFileItem *) const; | ||
83 | #endif | 84 | #endif | ||
84 | 85 | | |||
85 | /** | 86 | /** | ||
86 | * Return the index for a given kfileitem. This can be slow. | 87 | * Return the index for a given kfileitem. This can be slow. | ||
87 | */ | 88 | */ | ||
88 | QModelIndex indexForItem(const KFileItem &) const; | 89 | QModelIndex indexForItem(const KFileItem &) const; | ||
89 | 90 | | |||
90 | /** | 91 | /** | ||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |