API REVIEW: runnerName() -> name()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801360
This commit is contained in:
parent
254077afa4
commit
451dc3b8cd
@ -130,7 +130,7 @@ void AbstractRunner::performMatch( Plasma::SearchContext &globalContext )
|
||||
if (!slowed && runtime > reasonableRunTime) {
|
||||
// we punish runners that return too slowly, even if they don't bring
|
||||
// back matches
|
||||
kDebug() << runnerName() << "runner is too slow, putting it on the back burner.";
|
||||
kDebug() << name() << "runner is too slow, putting it on the back burner.";
|
||||
d->fastRuns = 0;
|
||||
setSpeed(SlowSpeed);
|
||||
}
|
||||
@ -143,7 +143,7 @@ void AbstractRunner::performMatch( Plasma::SearchContext &globalContext )
|
||||
if (d->fastRuns > 2) {
|
||||
// we reward slowed runners who bring back matches fast enough
|
||||
// 3 times in a row
|
||||
kDebug() << runnerName() << "runner is faster than we thought, kicking it up a notch";
|
||||
kDebug() << name() << "runner is faster than we thought, kicking it up a notch";
|
||||
setSpeed(NormalSpeed);
|
||||
}
|
||||
}
|
||||
@ -224,7 +224,7 @@ void AbstractRunner::match(Plasma::SearchContext *search)
|
||||
}
|
||||
}
|
||||
|
||||
QString AbstractRunner::runnerName() const
|
||||
QString AbstractRunner::name() const
|
||||
{
|
||||
if (!d->runnerDescription.isValid()) {
|
||||
return objectName();
|
||||
|
@ -156,7 +156,7 @@ class PLASMA_EXPORT AbstractRunner : public QObject
|
||||
/**
|
||||
* Returns the engine name for the Runner
|
||||
*/
|
||||
QString runnerName() const;
|
||||
QString name() const;
|
||||
|
||||
/**
|
||||
* Accessor for the associated Package object if any.
|
||||
|
Loading…
Reference in New Issue
Block a user