class KCompletion


Table of contents
Modules
kdeui Classes
All Classes
Module kdeui
Namespace global
Class KCompletion
Inherits QObject

Helper to determine if the given offset in the string could be a legal alphanumeric accelerator.

str - base string index - offset to check Loads all legal predefined accelerators in the (implicitly specified) collection into the given QMap.

begin - start iterator end - (last+1) iterator keys - map to store output Main, maximally flexible template function that assigns accelerators to the elements of a collection of QStrings. Clients will seldom use this directly, as it's usually easier to use one of the wrapper functions that simply takes a collection (see below).

The Deref template parameter is a class containing a static dereferencing function, modeled after the comparison class C in Stroustrup 13.4.

begin - (you know) end - (you know) target - collection to store generated strings Another convenience function; looks up the key instead of dereferencing directly for the given iterator.

begin - end - target - Convenience function; generates accelerators for all the items in a QStringList.

source - Strings for which to generate accelerators target - Output for accelerator-added strings Convenience function; generates accelerators for all the values in a QMap.

source - Map with input strings as VALUES. target - Output for accelerator-added strings Convenience function; generates an accelerator mapping from all the keys in a QMap

source - Map with input strings as KEYS. target - Output for accelerator-added strings A generic class for completing QStrings

This class offers easy use of "auto-completion", "manual-completion" or "shell completion" on QString objects. A common use is completing filenames or URLs (see KUrlCompletion()).



enums

enum details

methods