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

List:       kde-devel
Subject:    Re: Problems with a KActionMenu.
From:       Pupeno <pupeno () pupeno ! com>
Date:       2004-06-17 17:39:49
Message-ID: 200406171537.42667.pupeno () pupeno ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just for the record
I think the problem here was the xmlgui system.
If I removed the createGUI() call and plugged my KActionMenu into a toolbar 
and then inserted the KActions to it, it showed probperly. I think that it 
just doesn't work with the xmlgui system... a bug or a feature ?

On Wednesday June 16 2004 17:42, Pupeno wrote:
> I'm creating a KActionMenu in this way:
> KActionMenu *close = new KActionMenu(i18n("Close"), "fileclose", this,
> "fileClose");
>
> and then I added to the xmlgui file in this way:
> <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
> <kpartgui name="FileActivityViewer" version="0.1.9">
> 	<MenuBar>
> 		<Menu name="file">
> 			<text>&amp;File</text>
> 			<Menu name="fileClose">
> 				<text>Close</text>
> 			</Menu>
> 		</Menu>
> 	</MenuBar>
> </kpartgui>
>
> but when I do (after createGUI or before):
> KAction *afile = new KAction(i18n("fdsa"), 0, this, SLOT(fileCloseAll()),
> actionCollection(), "a");
> close->insert(afile);
> that item never appears in the submenu, any ideas ?
>
> Thanks.

- -- 
Pupeno: pupeno@pupeno.com - http://www.pupeno.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA0eT1fW48a9PWGkURAjYBAJ43ClBeHRfWFeeov2yik63cy+O56gCghqon
xc2AFuC2J8JJ2yDhyUzZ5jE=
=T90b
-----END 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