KDECore
KAccelString Class Reference
A string class handling accelerators. More...
#include <kaccelmanager_private.h>
Public Member Functions | |
int | accel () const |
QString | accelerated () const |
QChar | accelerator () const |
void | calculateWeights (int initialWeight) |
KAccelString (const QString &input, int initalWeight=-1) | |
KAccelString () | |
int | maxWeight (int &index, const QString &used) |
bool | operator== (const KAccelString &c) const |
int | originalAccel () const |
QString | originalText () const |
const QString & | pure () const |
void | setAccel (int accel) |
Detailed Description
A string class handling accelerators.This class contains a string and knowledge about accelerators. It keeps a list weights, telling how valuable each character would be as an accelerator.
Definition at line 42 of file kaccelmanager_private.h.
Constructor & Destructor Documentation
KAccelString::KAccelString | ( | ) | [inline] |
Definition at line 46 of file kaccelmanager_private.h.
KAccelString::KAccelString | ( | const QString & | input, | |
int | initalWeight = -1 | |||
) |
Definition at line 478 of file kaccelmanager.cpp.
Member Function Documentation
int KAccelString::accel | ( | ) | const [inline] |
Definition at line 54 of file kaccelmanager_private.h.
QString KAccelString::accelerated | ( | ) | const |
Definition at line 505 of file kaccelmanager.cpp.
QChar KAccelString::accelerator | ( | ) | const |
Definition at line 534 of file kaccelmanager.cpp.
void KAccelString::calculateWeights | ( | int | initialWeight | ) |
Definition at line 543 of file kaccelmanager.cpp.
int KAccelString::maxWeight | ( | int & | index, | |
const QString & | used | |||
) |
Definition at line 623 of file kaccelmanager.cpp.
bool KAccelString::operator== | ( | const KAccelString & | c | ) | const [inline] |
Definition at line 64 of file kaccelmanager_private.h.
int KAccelString::originalAccel | ( | ) | const [inline] |
Definition at line 57 of file kaccelmanager_private.h.
QString KAccelString::originalText | ( | ) | const [inline] |
Definition at line 58 of file kaccelmanager_private.h.
const QString& KAccelString::pure | ( | ) | const [inline] |
Definition at line 51 of file kaccelmanager_private.h.
void KAccelString::setAccel | ( | int | accel | ) | [inline] |
Definition at line 55 of file kaccelmanager_private.h.
The documentation for this class was generated from the following files: