[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Config inside koffice libs
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2005-09-26 11:36:26
Message-ID: 200509261336.30044.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 26 September 2005 13:31, David Faure wrote:
> On Sunday 25 September 2005 15:35, Boudewijn Rempt wrote:
> > I'm trying to retrieve a couple of config settings from within the
> > kopalette library. The funny thing is, I don't get anything back, even
> > though the keys are present in the General section of kritarc:
> >
> > kdDebug() << cfg->readNumEntry("palettefontsize") << "\n";
> > kdDebug() << cfg->readNumEntry("palettesdockability") << "\n";
> >
> > I'm not sure what's going on here -- and then I discovered the
> > kofficeConfig method of koGlobal. Should I use that and make the
> > palettesettings global?
>
> No, kofficeConfig is for kofficerc, whereas palette stuff is specific to
> krita.
The palettes are now in koffice libs, and used by Kivio and Karbon, too. It
makes sense to have the same configuration settings for all three.
> I assume cfg is KGlobal::config(). Checked that you're using the right
> group? (setGroup, or better: use KConfigGroup).
Yes, that turned out the problem. Which I find weird because KisConfig never
used to set a group and never had problems -- it's old code I inherited from
Patrick Julien.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
[Attachment #5 (application/pgp-signature)]
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic