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;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchContext::resetSearchTerm(const QString &term)
|
void SearchContext::reset()
|
||||||
{
|
{
|
||||||
d->lockForWrite();
|
d->lockForWrite();
|
||||||
QList<SearchMatch*> matches = d->matches;
|
QList<SearchMatch*> matches = d->matches;
|
||||||
@ -142,7 +142,6 @@ void SearchContext::resetSearchTerm(const QString &term)
|
|||||||
// delete the matches until after the signal is handled.
|
// delete the matches until after the signal is handled.
|
||||||
// a bit safer.
|
// a bit safer.
|
||||||
qDeleteAll(matches);
|
qDeleteAll(matches);
|
||||||
setSearchTerm(term);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchContext::setSearchTerm(const QString &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
|
* Resets the search term for this object.
|
||||||
* the type of the search.
|
* This removes all current matches in the process.
|
||||||
* This clears all current matches in the process.
|
|
||||||
*/
|
*/
|
||||||
void resetSearchTerm(const QString&);
|
void reset();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the search term for this object and attempts to determine
|
* Sets the search term for this object and attempts to determine
|
||||||
|
Loading…
Reference in New Issue
Block a user