KXMLGuiClient releated question...

Andras Mantia amantia at freemail.hu
Tue Mar 4 11:04:44 GMT 2003


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

Hi,

 Can someone explain me, why does the first client from factory()->clients() 
(so the main GUI client), has set the version to "8" after the createGUI(), 
even if it has another number in the .rc file? If I reload the .rc file with

guiClient->domDocument().setContent(KXMLGUIFactory::readConfigFile( guiClient->xmlFile(), guiClient->instance() ));

the DOM document will have the correct version inside... KEditToolbarWidget 
does the above, so it works, but it took some time until I figured out, that I cannot 
simply use the guiClient->domDocument() without the above reloading,
as after quitting the application, the .rc file will have 8 as its version number, which is
wrong (and caused that the global .rc file was loaded instead of it). And I don't
understand the reason behind this "8"...

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+ZIhMTQdfac6L/08RAuPEAJ97rwjQYdGfFEo9cBt5zna3bwARkQCfTRYx
KEebK9V1CIlqyR3tFsBPq04=
=FUfx
-----END PGP SIGNATURE-----






More information about the kde-core-devel mailing list