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

List:       kde-core-devel
Subject:    Re: Problems with KGlobalAccel
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-05-12 12:23:36
[Download RAW message or body]

On Saturday 12 May 2001 10:21, Henrik Johnson wrote:
> I'm wondering if there is any way to specify which config file the 
> KglobalAccel should use read/write it's configuration? The problem at 
> hand is that I'm writing a kicker applikation that wants to have some key 
> bindings and right now those bindings end up in the applikation 
> configuration instead of the applet configuration.
> 
> I'm thinking it would be a nice extension to be able to pass a Kconfig * 
> to the read/write settings. This change could be done without breaking 
> binary compatibility since these functions are non virtual. I can do this 
> another way for now, but I think I'am not the only one having this 
> problem.

Or passing a KInstance, as is done in many other places (icon loading, etc.).
This way KGlobal::instance() could be the default value of the instance
argument, and you could pass your own instance if you want.
This can be done in BC way, adding an overloaded method.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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