backported 948747 - ignore leading/following whitespaces

CCBUG: 188665

svn path=/branches/KDE/4.2/kdelibs/; revision=948748
This commit is contained in:
Jacopo De Simoi 2009-04-03 17:13:41 +00:00
parent 988c51290b
commit 676ae0970b

View File

@ -481,8 +481,10 @@ void RunnerManager::launchQuery(const QString &term)
launchQuery(term, QString());
}
void RunnerManager::launchQuery(const QString &term, const QString &runnerName)
void RunnerManager::launchQuery(const QString &untrimmedTerm, const QString &runnerName)
{
QString term = untrimmedTerm.trimmed();
if (d->runners.isEmpty()) {
d->loadRunners();
}
@ -529,8 +531,10 @@ bool RunnerManager::execQuery(const QString &term)
return execQuery(term, QString());
}
bool RunnerManager::execQuery(const QString &term, const QString &runnerName)
bool RunnerManager::execQuery(const QString &untrimmedTerm, const QString &runnerName)
{
QString term = untrimmedTerm.trimmed();
if (d->runners.isEmpty()) {
d->loadRunners();
}