--===============0184348894==
Content-Type: multipart/signed;
boundary="nextPart377935718.Y0KCzZi3bh";
protocol="application/pgp-signature";
micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart377935718.Y0KCzZi3bh
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 04 December 2005 8:36 pm, David Jarvie wrote:
> On Sunday 04 Dec 2005 21:01, David Faure wrote:
> > On Sunday 04 December 2005 19:03, David Jarvie wrote:
> > > In my application, there is a "Hide Toolbar" menu option, which appea=

rs
> > > due to the StandardToolBarMenuHandler entry in its ui.rc file. Using
> > > the menu option successfully toggles the toolbar on and off, but the
> > > setting doesn't get carried over after quitting and restarting the
> > > application. Similarly, if I change the text position setting via the
> > > toolbar context menu, the new position is lost the next time I run the
> > > application.
> > >
> > > Is there standard code to save and restore these settings?

> >
> > Call KMainWindow::setAutoSaveSettings() once in your constructor, and it
> > will do it all for you (saving and restoring)

>
> I already had that, but it didn't save the toolbar hide state or text
> position.


Use KMainWindow's setupGUI() and it will save it.

=2DBenjamin Meyer

=2D-=20
aka icefox
Public Key: http://www.icefox.net/public_key.asc

--nextPart377935718.Y0KCzZi3bh
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDlEbc1rZ3LTw38vIRAmgCAJ0b8gBQovBEgrQ3V0wRgd 74493f7wCfX5TJ
+kH8erXkHeAQpxMmTygyOmU=
=sPlz
-----END PGP SIGNATURE-----

--nextPart377935718.Y0KCzZi3bh--

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


--===============0184348894==--