class KMimeTypeChooserDialog


Table of contents
Modules
kio Classes
All Classes
Module kio
Namespace global
Class KMimeTypeChooserDialog
Inherits KDialog

A Dialog to choose some mimetypes. Provides a checkable tree list of mimetypes, with icons and optinally comments and patterns, and an (optional) button to display the KDE mimetype editor.

Here is an example, using the dialog to set the text of two lineedits:

QString text = i18n("Select the MimeTypes you want for this file type.");
QStringList list = QStringList.split( QRegExp("\\s*;\\s*"), leMimetypes->text() );
KMimeTypeChooserDialog dlg( i18n("Select Mime Types"), text, list, "text", this );
if ( dlg.exec() == KDialog.Accepted ) {
leWildcards->setText( dlg.chooser()->patterns().join(";") );
leMimetypes->setText( dlg.chooser()->mimeTypes().join(";") );
}

Author Anders Lund (anders at alweb dk) dec 19, 2001



methods