Minimal kdelibs on embedded platforms

Boudewijn Rempt boud at valdyas.org
Fri Nov 20 13:26:14 GMT 2009


On Friday 20 November 2009, Albert Astals Cid wrote:
> --- El vie, 20/11/09, Boudewijn Rempt escribió:
> > De: Boudewijn Rempt
> > Asunto: Re: Minimal kdelibs on embedded platforms
> > Fecha: viernes, 20 de noviembre, 2009 11:21
> > On Fri, 20 Nov 2009, Pau Garcia i
> >
> > Quiles wrote:
> > > On Fri, Nov 20, 2009 at 11:00 AM, Boudewijn Rempt
> >
> > wrote:
> > > >> Also you should never make a KFileDialog that
> >
> > just wraps QFileDialog.  If
> >
> > > >>  you are a KDE application and just just
> >
> > want a file dialog you can use the
> >
> > > >>  QFileDialog static functions and
> >
> > QFileDialog will call out to the KDE file
> >
> > > >>  dialog through hooks that are built into
> >
> > kio.  So if you are looking to
> >
> > > >>  make a minimal kde app this is one less api
> >
> > you have to worry about.
> >
> > > > Are there other K classes that get automatically
> >
> > used if you use a Q class in
> >
> > > > your app instead? It would be nice to have a list
> >
> > on techbase, and maybe a
> >
> > > > krazy check.
> > >
> > > I agree with having a list but I'd rather have that
> >
> > information in the
> >
> > > Qt docs: "If used under KDE, this class/method calls
> > > KFileDialog/whatever. If used under Gnome, this class
> >
> > calls...", etc
> >
> > > Not everybody developing with Qt under
> >
> > KDE/Gnome/whatever reads
> >
> > > Techbase, but they sure read the Qt docs.
> >
> > I'd need a list to go through Krita and do a s/K/Q/g where
> > approprioate.
> 
> Why would you want that? Are you planning to convert Krita in a Qt only
> application? Otherwise using QFileDialog instead of KFileDialog just gives
> you more slowlyness and no benefit.

I would certainly want to use as little kde-specific code in my application if 
it gets the kde-goodness anyway when running on the KDE platform. 

-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the kde-core-devel mailing list