# class KFileFilterCombo

###

Module | kio
Namespace |
Class | KFileFilterCombo
Inherits | KComboBox

### methods

- KFileFilterCombo (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Creates a new filter combo box.

  parent - The parent widget.

- currentFilter ( )

  returns QString

  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.

- defaultFilter ( )

  returns QString

  Returns the default filter, used when an empty filter is set.

  See also setDefaultFilter

- eventFilter (a0, a1)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |
  a1 | QEvent |

- filterChanged ( )

  returns Nothing
  SIGNAL ("filterChanged ()")

  This signal is emitted whenever the filter has been changed.

- filters ( )

  returns QStringList

  Returns all filters (this can be a list of patterns or a list of mimetypes)

- setCurrentFilter (filter)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  filter | QString |

  Sets the current filter. Filter must match one of the filter items passed before to this widget.

- setDefaultFilter (filter)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  filter | QString |

  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

- setFilter (filter)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  filter | QString |

  Sets the filter string.

- setMimeFilter (types, defaultType)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  types | QStringList |
  defaultType | QString |

  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.

- showsAllTypes ( )

  returns bool

  Returns true if the filter's first item is the list of all mimetypes