ktoolbar and index value
David Faure
faure at kde.org
Mon Jul 19 15:51:59 BST 2004
On Monday 19 July 2004 16:44, Benjamin Meyer wrote:
> KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow());
> // don't save if there's only one toolbar
> if ( !kmw || kmw->toolBarIterator().count() > 1 )
> config->writeEntry("Index", index);
> else
> config->revertToDefault("Index");
Looks OK to me.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list