KDECore
Go to the documentation of this file.
25 #include <QStringList>
32 static QRegExp delRx(QLatin1String(
"[+-]"));
34 int p = delRx.indexIn(shstr);
41 QChar oldDelim = shstr[p];
42 keys = shstr.split(oldDelim, QString::SkipEmptyParts);
45 for (
int i = 0; i < keys.size(); ++i) {
47 QString nkey = keys[i].trimmed().toLower();
48 bool isFunctionKey = nkey.length() > 1 && nkey[1].isDigit();
50 keys[i] = keydict.contains(nkey) ? keydict[nkey] : keys[i].trimmed();
53 keys[i] = keydict[QLatin1String(
"f%1")].arg(nkey.mid(1));
56 return keys.join(delim);
62 static QRegExp delRx(QLatin1String(
"\\||->"));
64 int p = delRx.indexIn(inpstr);
69 QString oldDelim = delRx.capturedTexts().at(0);
70 QStringList guiels = inpstr.split(oldDelim, QString::SkipEmptyParts);
71 return guiels.join(delim);
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:11:43 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.