resetSearchTerm(QString) -> reset()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800679
This commit is contained in:
parent
0fe77de70f
commit
6053e33430
@ -119,7 +119,7 @@ SearchContext::~SearchContext()
|
||||
delete d;
|
||||
}
|
||||
|
||||
void SearchContext::resetSearchTerm(const QString &term)
|
||||
void SearchContext::reset()
|
||||
{
|
||||
d->lockForWrite();
|
||||
QList<SearchMatch*> matches = d->matches;
|
||||
@ -142,7 +142,6 @@ void SearchContext::resetSearchTerm(const QString &term)
|
||||
// delete the matches until after the signal is handled.
|
||||
// a bit safer.
|
||||
qDeleteAll(matches);
|
||||
setSearchTerm(term);
|
||||
}
|
||||
|
||||
void SearchContext::setSearchTerm(const QString &term)
|
||||
|
@ -69,11 +69,10 @@ class PLASMA_EXPORT SearchContext : public QObject
|
||||
|
||||
|
||||
/**
|
||||
* Sets the search term for this object and attempts to determine
|
||||
* the type of the search.
|
||||
* This clears all current matches in the process.
|
||||
* Resets the search term for this object.
|
||||
* This removes all current matches in the process.
|
||||
*/
|
||||
void resetSearchTerm(const QString&);
|
||||
void reset();
|
||||
|
||||
/**
|
||||
* Sets the search term for this object and attempts to determine
|
||||
|
Loading…
Reference in New Issue
Block a user