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

List:       kde-devel
Subject:    Re: newbie dev question KCMUserAccount
From:       Niels van Mourik <niels () shodan ! nl>
Date:       2007-01-02 10:45:42
Message-ID: 200701021145.47386.niels () shodan ! nl
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

Because I am not really into the code of kcontrol I don't have a direct 
solution for it. But perhaps you are looking for 'kcmshell'.

Keep us up to date!

On Monday 01 January 2007 17:32, Tom Hosiawa wrote:
> Hi,
>
> I'm just starting looking at the kde code to fix a bug and have a
> question that I can't figure out.
>
> I'm looking at the code in trunk/KDE/kdebase/kdepasswd/kcm/main.cpp .
> This code is run when I run "System Settings" and click on "About Me"
> under personal settings in Kubuntu. I forgot what the regular kde
> preference command is, I think it's kcontrol.
>
> What I can't figure out is, what instantiates the KCMUserAccount
> object that the "About Me" window uses. I've grepped through all the
> code, and it must be done by something I don't understand yet in kde.
> I can't find any direct instantiation of this class anywhere.
>
> Is this doing it, I can't figure out what this code does?
> typedef KGenericFactory<KCMUserAccount, QWidget> Factory;
> K_EXPORT_COMPONENT_FACTORY( useraccount, Factory("useraccount") )
>
> So, I wondering, can anybody explain to me what/where this
> KCMUserAccount object is being instantied?
>
> I'm trying to figure this out because of a bug I found. If I open the
> "About Me" window, then goto the "Login Manager" window and change the
> "User Image Source" option under the Users tab, then go back to the
> "About Me" window, the change I just did isn't recognized. I have to
> restart "System Settings" because it looks like KCMUserAccount loads
> the information from the config file /etc/kde3/kdm/kdmrc only the
> first time I open "About Me", not the second time, after changing
> "User Image Source".

-- 
Alan Turing thought about criteria to settle the question of whether
machines can think, a question of which we now know that it is about
as relevant as the question of whether submarines can swim.
      -- Dijkstra

[Attachment #5 (application/pgp-signature)]

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


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

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