[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: More then one Mimetype
From:       Stephan Kulow <coolo () kde ! org>
Date:       1999-11-09 11:51:01
[Download RAW message or body]

Reginald Stadlbauer wrote:
> 
> On Tue, 09 Nov 1999, David Faure wrote:
> >Michael, what about this ?
> >
> >#include <kimgio.h>
> >
> >    QString file = KFilePreviewDialog::getOpenFileName( QString::null,
> >                                                        KImageIO::pattern(KImageIO::Reading),
> >                                                        0 );
> >
> >(from Reggie's excellent code in kpresenter/backdia.cc, of course)  :-)
> 
> To be fair: the KImageIO::pattern(KImageIO::Reading) stuff is from coolo, as he
> didnīt like that I that I copied this mega-string with all the filters into
> each filedialog call :-)
> 
The other point is that only KImageIO knows what types it can load.
For example if qimgio is present it is different (saving jpgs). But
that kimgio doesn't evualate and only returns a mega-string (as Reggie
put it nicely :) is just a bug.

Greetings, Stephan

-- 
When your memory goes, forget it!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic