KuitFormats Namespace Reference
Functions | |
| QString | toInterfacePath (const QString &inpstr, const QString &delim) |
| QString | toKeyCombo (const QString &shstr, const QString &delim, const QHash< QString, QString > &keydict) |
Function Documentation
Reformat GUI element path.
Consider the first encountered of '/', '|' or "->" as path delimiter, and replace them with the supplied delimiter.
- Parameters:
-
inpstr raw interface path string delim replacement path delimiter
- Returns:
- path in proper format
Definition at line 59 of file kuitformats.cpp.
| QString KuitFormats::toKeyCombo | ( | const QString & | shstr, |
| const QString & | delim, | ||
| const QHash< QString, QString > & | keydict | ||
| ) |
Reformat keyboard shortcut.
The first of encountered of '+' or '-' is taken for key delimiter, and the supplied delimiter is used instead. A dictionary of replacement key names can also be provided, which can be used for localization of the key names.
- Parameters:
-
shstr raw shortcut string delim replacement delimiter for keys keydict replacement dictionary of key names
- Returns:
- shortcut in proper format
Definition at line 29 of file kuitformats.cpp.
KDE 4.6 API Reference