KFileFilterCombo Class Reference
from PyKDE4.kio import *
Inherits: KComboBox → QComboBox → QWidget → QObject
Detailed Description
Signal Documentation
This signal is emitted whenever the filter has been changed.
- Signal syntax:
- QObject.connect(source, SIGNAL("filterChanged()"), target_slot)
 
Method Documentation
| __init__ | ( | self, |  | 
|  |  | QWidget | parent=0 | 
|  | ) |  |  |  | 
 
Creates a new filter combo box.
- Parameters:
- 
|  | parent | The parent widget. |  
 
 
- Returns:
-  the current filter, either something like "*.cpp *.h"
or the current mimetype, like "text/html", or a list of those, like
" "text/html text/plain image/png", all separated with one space.
 
- Returns:
-  the default filter, used when an empty filter is set.
- See also:
-  setDefaultFilter
 
- Returns:
-  all filters (this can be a list of patterns or a list of mimetypes)
 
| setCurrentFilter | ( | self, |  | 
|  |  | QString | filter | 
|  | ) |  |  |  | 
 
Sets the current filter. Filter must match one of the filter items
passed before to this widget.
 
| setDefaultFilter | ( | self, |  | 
|  |  | QString | filter | 
|  | ) |  |  |  | 
 
This method allows you to set a default-filter, that is used when an
empty filter is set. Make sure you call this before calling
setFilter().
By default, this is set to i18n("*|All Files")
- See also:
-  defaultFilter
 
Sets a list of mimetypes.
If defaultType is set, it will be set as the current item.
Otherwise, a first item showing all the mimetypes will be created.
 
| bool showsAllTypes | ( |  | self ) |  | 
 
- Returns:
-  true if the filter's first item is the list of all mimetypes