class KCompletionMatches
|
List for keeping matches returned from KCompletion. More... |
|
|
Public Methods
This structure is returned by KCompletion::allWeightedMatches .
It also keeps the weight of the matches, allowing
you to modify some matches or merge them with matches
from another call to allWeightedMatches(), and sort the matches
after that in order to have the matches ordered correctly
Example (a simplified example of what Konqueror's completion does):
KCompletionMatches ( bool sort )
| KCompletionMatches |
~KCompletionMatches ()
| ~KCompletionMatches |
void removeDuplicates ()
| removeDuplicates |
Removes duplicate matches. Needed only when you merged several matches
results and there's a possibility of duplicates.
[const]
Returns the matches as a QStringList.
Parameters:
sort | if false, the matches won't be sorted before the conversion,
use only if you're sure the sorting is not needed
|
Returns: the list of matches
[const]
If sorting() returns false, the matches aren't sorted by their weight,
even if true is passed to list().
Returns: true if the matches won't be sorted
Generated by: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $. |