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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| QString | removeAcceleratorMarker (const QString &label) |
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.
KDE 4.6 API Reference