clearMatches() -> removeAllMatches().
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800666
This commit is contained in:
parent
8e8d6ea060
commit
c6cc8a4b5f
@ -284,7 +284,7 @@ bool SearchContext::moveMatchesTo(SearchContext &other)
|
|||||||
//NOTE: we have moveMatchesTo instead of the more 'natural' addMatches
|
//NOTE: we have moveMatchesTo instead of the more 'natural' addMatches
|
||||||
// because we can get away with one write lock on the local object
|
// because we can get away with one write lock on the local object
|
||||||
// this way, otherwise we'd need to lock once for searchTerm, once
|
// this way, otherwise we'd need to lock once for searchTerm, once
|
||||||
// for matches() and again for clearMatches() (2 read, one write)
|
// for matches() and again for removeAllMatches() (2 read, one write)
|
||||||
d->lockForWrite();
|
d->lockForWrite();
|
||||||
|
|
||||||
const bool success = other.addMatches(d->term, d->matches);
|
const bool success = other.addMatches(d->term, d->matches);
|
||||||
@ -307,7 +307,7 @@ QList<SearchMatch *> SearchContext::matches() const
|
|||||||
return matches;
|
return matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchContext::clearMatches()
|
void SearchContext::removeAllMatches()
|
||||||
{
|
{
|
||||||
d->lockForWrite();
|
d->lockForWrite();
|
||||||
|
|
||||||
|
@ -161,9 +161,9 @@ class PLASMA_EXPORT SearchContext : public QObject
|
|||||||
void determineType();
|
void determineType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears matches
|
* Removes all matches from this SearchContext.
|
||||||
*/
|
*/
|
||||||
void clearMatches();
|
void removeAllMatches();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void matchesChanged();
|
void matchesChanged();
|
||||||
|
Loading…
Reference in New Issue
Block a user