15 QString MyPlugin::oddUpper(
const QString& str)
19 for (
int i = 0; i < str.length(); ++i) {
20 strTemp += (i % 2) ? str.at(i) : str.at(i).toUpper();
34 return QStringList() <<
"oddUpper" <<
"lower";
39 const QString& strOperation
43 if (strOperation ==
"oddUpper") {
44 strTemp = oddUpper(strText);
46 else if (strOperation ==
"lower") {
47 strTemp = strText.toLower();
50 qDebug() <<
"Unsupported operation";
virtual QString operation(const QString &, const QString &)
virtual QStringList operations() const