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

List:       kde-devel
Subject:    Re: KActions in context menus
From:       Alexander Brand <alinx () gmx ! de>
Date:       2001-11-08 10:32:52
[Download RAW message or body]

Am Mittwoch,  7. November 2001 20:22 schrieb Olaf Hartig:

Hi Ole,

> Hello Alexander,
>
> I had the same problem and solved it the following way:
>
> Add a member of the type KXMLGUIClient* to your widget (the listview) and
> initialize it in its constructor. By initializing you widget (which surely
> happens in your part's constructor) you hand over a pointer to your part
> (which is of the same type, because KParts::PartBase is derived from
> KXMLGUIClient).
> In your widgets functions you can use the new pointer.

That's the way I've done with the factory but in my widget I didn't had a 
KXMLGUIClient. I'll have a look at kxmleditor. 

> You may take a look at KXMLEditor (http://kxmleditor.sourceforge.net) to
> see the details.

Thanks for help,

Bye,
   Alex

 
>> 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