Hi list. There's this code:

    KFileDialog dlg(emptyUrl, i18n("*.png *.xpm *.svg *.svgz|Icon Files (*.png 
*.xpm *.svg *.svgz)"), q);
    dlg.setOperationMode( KFileDialog::Opening );
    dlg.setCaption( i18n("Open") );
    dlg.setMode( KFile::File );

    KImageFilePreview *ip = new KImageFilePreview( &dlg );
    dlg.setPreviewWidget( ip );
    int result = dlg.exec();

But I want to select a file with suffix ".ico".
I type "*.ico", press enter and expect it to show me them, but instead
dlg.exec() returns QDialog::Accepted and dlg.selectedFile() returns
"*.ico".



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to