class KFileFilterCombo

# class KFileFilterCombo |
Definition | `#include <kfilefiltercombo.h>`
Inherits | KComboBox (kdeui) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KFileFilterCombo (QWidget *parent= 0, const char *name= 0)
- ~KFileFilterCombo ()
- void setFilter (const QString& filter)
- QString currentFilter () const
- void setMimeFilter ( const QStringList& types, const QString& defaultType )
- bool showsAllTypes () const
- void setDefaultFilter ( const QString& filter )
- QString defaultFilter () const

#### Signals

- void filterChanged ()

#### Protected Methods

- virtual bool eventFilter ( QObject *o, QEvent *e )
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- QStringList filters
- bool m_allTypes

## Detailed Description

KFileFilterCombo (QWidget *parent= 0, const char *name= 0) | ### KFileFilterCombo

~KFileFilterCombo () | ### ~KFileFilterCombo

void setFilter (const QString& filter) | ### setFilter

QString currentFilter () | ### currentFilter

[const]

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.

void setMimeFilter ( const QStringList& types, const QString& defaultType ) | ### setMimeFilter

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 () | ### showsAllTypes

[const]

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

void setDefaultFilter ( const QString& filter ) | ### setDefaultFilter

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

QString defaultFilter () | ### defaultFilter

[const]

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

See also: setDefaultFilter

bool eventFilter ( QObject *o, QEvent *e ) | ### eventFilter

[protected virtual]

Reimplemented from KComboBox.

QStringList filters | ### filters

[protected]

bool m_allTypes | ### m_allTypes

[protected]

void filterChanged () | ### filterChanged

[signal]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KComboBox.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:17 2003, using kdoc 2.0a54.