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