class KListWidgetSearchLine |
|
This class makes it easy to add a search line for filtering the items in a
listwidget based on a simple text search.
No changes to the application other than instantiating this class with an appropriate QListWidget should be needed. |
|
Constructs a KListWidgetSearchLine with listWidget being the QListWidget to
be filtered.
If listWidget is null then the widget will be disabled until a listWidget is set with setListWidget(). |
|
|
Returns if the search is case sensitive. This defaults to Qt.CaseInsensitive.
See also setCaseSensitive() |
|
Clear line edit and empty hiddenItems, returning elements to listWidget. |
|
Re-implemented for internal reasons. API not affected. |
|
Returns true if item matches the search s. This will be evaluated based on the value of caseSensitive(). This can be overridden in subclasses to implement more complicated matching schemes. |
|
Returns the listWidget that is currently filtered by the search.
See also setListWidget() |
|
Make the search case sensitive or case insensitive.
See also caseSenstive() |
|
Sets the QListWidget that is filtered by this search line. If lv is null
then the widget will be disabled.
See also listWidget() |
|
Updates search to only make visible the items that match s. If s is null then the line edit's text will be used. |