Changeset View
Changeset View
Standalone View
Standalone View
src/ksortablelist.h
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
125 | /** | 125 | /** | ||
126 | * @return the second value (the item) | 126 | * @return the second value (the item) | ||
127 | */ | 127 | */ | ||
128 | const T &value() const | 128 | const T &value() const | ||
129 | { | 129 | { | ||
130 | return this->second; | 130 | return this->second; | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | #if KCOMPLETION_ENABLE_DEPRECATED_SINCE(4, 0) | ||||
133 | /** | 134 | /** | ||
134 | * @return the first value (the key) | 135 | * @return the first value (the key) | ||
135 | * @deprecated use key() | 136 | * @deprecated Since 4.0. Use key() | ||
136 | */ | 137 | */ | ||
137 | #ifndef KCOMPLETION_NO_DEPRECATED | 138 | KCOMPLETION_DEPRECATED_VERSION(4, 0, "Use KSortableItem::key()") | ||
138 | KCOMPLETION_DEPRECATED Key index() const | 139 | Key index() const | ||
139 | { | 140 | { | ||
140 | return this->first; | 141 | return this->first; | ||
141 | } | 142 | } | ||
142 | #endif | 143 | #endif | ||
143 | /** | 144 | /** | ||
144 | * @return the first value. | 145 | * @return the first value. | ||
145 | */ | 146 | */ | ||
146 | Key key() const | 147 | Key key() const | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |