KPart GUI merging

Andras Mantia amantia at freemail.hu
Mon Mar 31 18:58:26 BST 2003


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

On 2003. March 31., Monday 17:16, Caleb Tennis wrote:
> // New code:
>
> KAction *a = actionCollection()->action("help_report_bug");
> disconnect(a, SIGNAL(activated()), 0 ,0);
> connect(a, SIGNAL(activated()), this, SLOT(slotReportBug()));

You won't believe me, but I've also tried something similar. :-) 
The only difference was that I used the part's actionCollection() and it was 
not working. But if you say that this works, yes it's a (good) workaround. 
But I would like to see a clean way to do it...

I haven't checked the Gideon code yet, but what do you do when you switch 
between the editor parts? Do you remove the UI for the current editor part 
and add the UI for the part where you switched with 
guiFactory()->removeClient()/addClient() ? I'm curious, as doing so can be 
slow (especially if I have to do some disconnect/connect like above), but I 
don't see any other way to do it.

Andras

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+iIHCTQdfac6L/08RAulsAKCPkc7L8bQektPkPDUC7PBQ3iwt7gCfaaGW
vCJPoWH/+CYsxGHNK3aFFgg=
=Qckv
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list