From kde-devel Tue Aug 28 00:17:34 2007 From: "Elio Cuevas" Date: Tue, 28 Aug 2007 00:17:34 +0000 To: kde-devel Subject: Re: KFileDialog::getOpenFileName question Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=118826029816663 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0852425656==" --===============0852425656== Content-Type: multipart/alternative; boundary="----=_Part_18554_2686722.1188260254231" ------=_Part_18554_2686722.1188260254231 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I didn't see that one. Thanks! I think that example should be in setMimeFilter too as it's a little more obvious to see there. 2007/8/27, Kevin Krammer : > > > On Tuesday 28 August 2007, Elio Cuevas wrote: > > Thanks Carlo and Kevin. I was trying to follow the sugestion of the > docs, > > that specifying mime types was the preferred way. The documentation > doesn't > > say how to specify multiple mimetypes in a string. I tried: > > "image/png\nimage/jpeg", "image/png:image/jpeg", "image/png|image/jpeg" > and > > many others, no luck. Maybe i should ignore the sugestion in the docs > and > > use shell globs? > > One of the examples at setFilter (second code box) is this: > > kfile->setFilter( "image/png text/html text/plain" ); > > If it doesn't work as advertised there is either a bug in the code or in > the > docs :) > > Cheers, > Kevin > > -- > Kevin Krammer, KDE developer, xdg-utils developer > KDE user support, developer mentoring > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > > > ------=_Part_18554_2686722.1188260254231 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I didn't see that one. Thanks! I think that example should be in setMimeFilter too as it's a little more obvious to see there.

2007/8/27, Kevin Krammer < kevin.krammer@gmx.at>:

On Tuesday 28 August 2007, Elio Cuevas wrote:
> Thanks Carlo and Kevin. I was trying to follow the sugestion of the docs,
> that specifying mime types was the preferred way. The documentation doesn't
> say how to specify multiple mimetypes in a string. I tried:
> "image/png\nimage/jpeg", "image/png:image/jpeg", "image/png|image/jpeg" and
> many others, no luck. Maybe i should ignore the sugestion in the docs and
> use shell globs?

One of the examples at setFilter (second code box) is this:

kfile->setFilter( "image/png text/html text/plain" );

If it doesn't work as advertised there is either a bug in the code or in the
docs :)

Cheers,
Kevin

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


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



------=_Part_18554_2686722.1188260254231-- --===============0852425656== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0852425656==--