common_helpers.cpp File Reference
#include <common_helpers_p.h>
Include dependency graph for common_helpers.cpp:

Go to the source code of this file.
Functions | |
| QString | removeAcceleratorMarker (const QString &label_) |
| static QString | removeReducedCJKAccMark (const QString &label, int pos) |
Function Documentation
Removes accelerator marker from a UI text label.
Accelerator marker is not always a plain ampersand (&), so it is not enough to just remove it by QString::remove(). The label may contain escaped markers ("&&") which must be resolved and skipped, as well as CJK-style markers ("Foo (&F)") where the whole parenthesis construct should be removed. Therefore always use this function to remove accelerator marker from UI labels.
- Parameters:
-
label UI label which may contain an accelerator marker
- Returns:
- label without the accelerator marker
Definition at line 52 of file common_helpers.cpp.
Definition at line 24 of file common_helpers.cpp.
KDE 4.6 API Reference