Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kitemlistselectionmanager.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 46 | public: | |||
---|---|---|---|---|---|
57 | int currentItem() const; | 57 | int currentItem() const; | ||
58 | 58 | | |||
59 | void setSelectedItems(const KItemSet& items); | 59 | void setSelectedItems(const KItemSet& items); | ||
60 | KItemSet selectedItems() const; | 60 | KItemSet selectedItems() const; | ||
61 | bool isSelected(int index) const; | 61 | bool isSelected(int index) const; | ||
62 | bool hasSelection() const; | 62 | bool hasSelection() const; | ||
63 | 63 | | |||
64 | void setSelected(int index, int count = 1, SelectionMode mode = Select); | 64 | void setSelected(int index, int count = 1, SelectionMode mode = Select); | ||
65 | void replaceSelection(int index, int count = 1); | ||||
65 | void clearSelection(); | 66 | void clearSelection(); | ||
66 | 67 | | |||
67 | void beginAnchoredSelection(int anchor); | 68 | void beginAnchoredSelection(int anchor); | ||
68 | void endAnchoredSelection(); | 69 | void endAnchoredSelection(); | ||
69 | bool isAnchoredSelectionActive() const; | 70 | bool isAnchoredSelectionActive() const; | ||
70 | 71 | | |||
71 | KItemModelBase* model() const; | 72 | KItemModelBase* model() const; | ||
72 | 73 | | |||
Show All 31 Lines |