Changeset View
Changeset View
Standalone View
Standalone View
src/kcompletionbase.h
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | 49 | public: | |||
---|---|---|---|---|---|
256 | * | 256 | * | ||
257 | * @param item the item to check | 257 | * @param item the item to check | ||
258 | * @return the key binding used for the feature given by @p item. | 258 | * @return the key binding used for the feature given by @p item. | ||
259 | * @since 5.0 | 259 | * @since 5.0 | ||
260 | * @see setKeyBinding | 260 | * @see setKeyBinding | ||
261 | */ | 261 | */ | ||
262 | QList<QKeySequence> keyBinding(KeyBindingType item) const; | 262 | QList<QKeySequence> keyBinding(KeyBindingType item) const; | ||
263 | 263 | | |||
264 | #if KCOMPLETION_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
264 | /** | 265 | /** | ||
265 | * @deprecated since 5.0, use keyBinding instead | 266 | * @deprecated since 5.0, use keyBinding instead | ||
266 | */ | 267 | */ | ||
267 | #ifndef KCOMPLETION_NO_DEPRECATED | 268 | KCOMPLETION_DEPRECATED_VERSION(5, 0, "Use KCompletionBase::keyBinding(KeyBindingType)") | ||
268 | KCOMPLETION_DEPRECATED QList<QKeySequence> getKeyBinding(KeyBindingType item) const | 269 | QList<QKeySequence> getKeyBinding(KeyBindingType item) const | ||
269 | { | 270 | { | ||
270 | return keyBinding(item); | 271 | return keyBinding(item); | ||
271 | } | 272 | } | ||
272 | #endif | 273 | #endif | ||
273 | 274 | | |||
274 | /** | 275 | /** | ||
275 | * Sets this object to use global values for key bindings. | 276 | * Sets this object to use global values for key bindings. | ||
276 | * | 277 | * | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 326 | protected: | |||
329 | * This method is the same as getKeyBinding(), except that it | 330 | * This method is the same as getKeyBinding(), except that it | ||
330 | * returns the whole keymap containing the key bindings. | 331 | * returns the whole keymap containing the key bindings. | ||
331 | * | 332 | * | ||
332 | * @return the key binding used for the feature given by @p item. | 333 | * @return the key binding used for the feature given by @p item. | ||
333 | * @since 5.0 | 334 | * @since 5.0 | ||
334 | */ | 335 | */ | ||
335 | KeyBindingMap keyBindingMap() const; | 336 | KeyBindingMap keyBindingMap() const; | ||
336 | 337 | | |||
338 | #if KCOMPLETION_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
337 | /** | 339 | /** | ||
338 | * @deprecated since 5.0, use keyBindingMap instead | 340 | * @deprecated since 5.0, use keyBindingMap instead | ||
339 | */ | 341 | */ | ||
340 | #ifndef KCOMPLETION_NO_DEPRECATED | 342 | KCOMPLETION_DEPRECATED_VERSION(5, 0, "Use KCompletionBase::keyBindingMap()") | ||
341 | KCOMPLETION_DEPRECATED KeyBindingMap getKeyBindings() const | 343 | KeyBindingMap getKeyBindings() const | ||
342 | { | 344 | { | ||
343 | return keyBindingMap(); | 345 | return keyBindingMap(); | ||
344 | } | 346 | } | ||
345 | #endif | 347 | #endif | ||
346 | 348 | | |||
347 | /** | 349 | /** | ||
348 | * Sets the keymap. | 350 | * Sets the keymap. | ||
349 | * | 351 | * | ||
Show All 29 Lines |