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

List:       kde-devel
Subject:    Re: Saving and restoring toolbar settings
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2005-12-04 18:14:50
Message-ID: 200512041914.50946.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 04 December 2005 19:03, David Jarvie wrote:
> In my application, there is a "Hide Toolbar" menu option, which appears 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? Or does it have
> to be specially coded by each application?

Try KToolBar::saveSettings and KToolBar::applySettings

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

[Attachment #5 (application/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