From kde-devel Fri Nov 25 10:51:40 2005 From: Benjamin Meyer Date: Fri, 25 Nov 2005 10:51:40 +0000 To: kde-devel Subject: Re: KDE Test Report - savesize, optionsShowToolbar() Message-Id: <200511250749.04254.ben () meyerhome ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=113291590012189 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2052163769==" --===============2052163769== Content-Type: multipart/signed; boundary="nextPart4340017.0o4unX1yKe"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4340017.0o4unX1yKe Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 23 November 2005 4:21 pm, Andreas Silberstorff wrote: > Am Mittwoch, 23. November 2005 13:56 schrieb Benjamin Meyer: > > On Tuesday 22 November 2005 6:04 pm, Andreas Silberstorff wrote: > > > Am Dienstag, 22. November 2005 23:09 schrieb Michael Pyne: > > > > Basically, there is a lot of boilerplate that KMainWindow::setupGUI= () > > > > can handle for you, including implementing the showToolbarDialog > > > > slot. (You would use setupGUI() in place of createGUI()). > > > > > > > > If you remove the slot from the .cpp you also need to remove the > > > > reference to it from the .h file. > > > > > > Thank you. This allready did help me a lot. It even fixed a bug in > > > kalva I did struggle with (changing the toolbar did only show a > > > difference after reloading kalva). > > > > Hey there (/me author of said test) how could I improve the docs both in > > the test and in kmainwindow so that others wouldn't be confused? > > (fyi all the tests are located here: > > trunk/playground/base/kdetestscripts) > > Hi Benjamin. > I would say Your scripts are fine and the docs are as well. I appreciate > these tests a lot as they help me to learn and to improve my coding. > > There is one thing I miss from the doc for KMainWindow, that is something > about where and when to load plugins. If they are loaded before setupGUI > they are not visible. If the user changes the toolbar config, plugins > vanish, so obviously I need to call loadPlugins() after KMainWindow calls > setupGUI again. I can't find an event where I can do that. > > The QString.fromLatin1() thing might get a better explanation. Looks like= I > made my "correction" just on the wrong part of the comparison?! Sorry about that, I have added a comment that it is for Qt4 and not 3. It= =20 will be in tomarrow's run =2DBenjamin Meyer =2D-=20 aka icefox Public Key: http://www.icefox.net/public_key.asc --nextPart4340017.0o4unX1yKe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDhwhA1rZ3LTw38vIRAkO/AKCwpfP2zaunl9ijTDfNPqlfpgkHFwCeNEc6 T1EZ+domkQmZwilR/7U7V4M= =nJmg -----END PGP SIGNATURE----- --nextPart4340017.0o4unX1yKe-- --===============2052163769== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============2052163769==--