KDEUI
kaccelgen.h
Go to the documentation of this file.
244 generate<QStringList::ConstIterator, Deref<QStringList::ConstIterator> >(source.begin(), source.end(), target);
257 generate<typename QMap<Key,QString>::ConstIterator, Deref_Key<typename QMap<Key,QString>::ConstIterator> >(source.begin(), source.end(), target);
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
bool contains(const Key &key) const
void generateFromValues(const QMap< Key, QString > &source, QStringList &target)
Convenience function; generates accelerators for all the values in a QMap.
Definition: kaccelgen.h:255
void append(const T &value)
QString & insert(int position, QChar ch)
iterator end()
iterator begin()
iterator end()
void generate(Iter begin, Iter end, QStringList &target)
Main, maximally flexible template function that assigns accelerators to the elements of a collection ...
Definition: kaccelgen.h:167
int length() const
bool isLegalAccelerator(const QString &str, int index)
Helper to determine if the given offset in the string could be a legal alphanumeric accelerator...
Definition: kaccelgen.h:114
iterator insert(const Key &key, const T &value)
Static dereference class, for use as a template parameter.
Definition: kaccelgen.h:89
void loadPredefined(Iter begin, Iter end, QMap< QChar, bool > &keys)
Loads all legal predefined accelerators in the (implicitly specified) collection into the given QMap...
Definition: kaccelgen.h:130
iterator begin()
Static dereference class that calls the key() method on its target; for use as a template parameter...
Definition: kaccelgen.h:100
void generateFromKeys(Iter begin, Iter end, QStringList &target)
Another convenience function; looks up the key instead of dereferencing directly for the given iterat...
Definition: kaccelgen.h:229
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.