revert last change, binary incompatible. need to find another way to solve the bug
svn path=/trunk/KDE/kdelibs/; revision=919638
This commit is contained in:
parent
2b43959d6b
commit
50e22d6d09
@ -481,12 +481,12 @@ QList<QAction*> RunnerManager::actionsForMatch(const QueryMatch &match)
|
||||
return QList<QAction*>();
|
||||
}
|
||||
|
||||
bool RunnerManager::launchQuery(const QString &term)
|
||||
void RunnerManager::launchQuery(const QString &term)
|
||||
{
|
||||
return launchQuery(term, QString());
|
||||
launchQuery(term, QString());
|
||||
}
|
||||
|
||||
bool RunnerManager::launchQuery(const QString &term, const QString &runnerName)
|
||||
void RunnerManager::launchQuery(const QString &term, const QString &runnerName)
|
||||
{
|
||||
if (d->runners.isEmpty()) {
|
||||
d->loadRunners();
|
||||
@ -494,12 +494,12 @@ bool RunnerManager::launchQuery(const QString &term, const QString &runnerName)
|
||||
|
||||
if (term.isEmpty()) {
|
||||
reset();
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (d->context.query() == term) {
|
||||
// we already are searching for this!
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
reset();
|
||||
@ -527,7 +527,6 @@ bool RunnerManager::launchQuery(const QString &term, const QString &runnerName)
|
||||
d->searchJobs.append(job);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RunnerManager::execQuery(const QString &term)
|
||||
|
@ -108,12 +108,12 @@ class PLASMA_EXPORT RunnerManager : public QObject
|
||||
* @arg term the term we want to find matches for
|
||||
* @arg runner optional, if only one specific runner is to be used
|
||||
*/
|
||||
bool launchQuery(const QString &term, const QString &runnerName);
|
||||
void launchQuery(const QString &term, const QString &runnerName);
|
||||
|
||||
/**
|
||||
* Convenience version of above
|
||||
*/
|
||||
bool launchQuery(const QString &term);
|
||||
void launchQuery(const QString &term);
|
||||
|
||||
/**
|
||||
* Execute a query, this method will only return when the query is executed
|
||||
|
Loading…
Reference in New Issue
Block a user