KDECore
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 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:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.