Changeset View
Changeset View
Standalone View
Standalone View
src/completion/katecompletionmodel.h
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Line(s) | |||||
269 | 269 | | |||
270 | public: | 270 | public: | ||
271 | // Grouping and sorting of rows | 271 | // Grouping and sorting of rows | ||
272 | class Group | 272 | class Group | ||
273 | { | 273 | { | ||
274 | public: | 274 | public: | ||
275 | explicit Group(const QString &title, int attribute, KateCompletionModel *model); | 275 | explicit Group(const QString &title, int attribute, KateCompletionModel *model); | ||
276 | 276 | | |||
277 | void addItem(Item i, bool notifyModel = false); | 277 | void addItem(const Item &i, bool notifyModel = false); | ||
278 | /// Removes the item specified by \a row. Returns true if a change was made to rows. | 278 | /// Removes the item specified by \a row. Returns true if a change was made to rows. | ||
279 | bool removeItem(const ModelRow &row); | 279 | bool removeItem(const ModelRow &row); | ||
280 | void resort(); | 280 | void resort(); | ||
281 | void refilter(); | 281 | void refilter(); | ||
282 | void clear(); | 282 | void clear(); | ||
283 | // Returns whether this group should be ordered before other | 283 | // Returns whether this group should be ordered before other | ||
284 | bool orderBefore(Group *other) const; | 284 | bool orderBefore(Group *other) const; | ||
285 | // Returns a number that can be used for ordering | 285 | // Returns a number that can be used for ordering | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |