[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Why can't I type "*.*" in KFileDialog ?
From: Ilya Basin <basinilya () gmail ! com>
Date: 2013-04-06 12:08:26
Message-ID: 135783525.20130406160826 () gmail ! com
[Download RAW message or body]
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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic