Make KStyle honour KDE wide single-click behaviour

David Faure faure at kde.org
Thu Jun 12 22:57:56 BST 2008


On Thursday 12 June 2008, Matthias Kretz wrote:
> The real solution would be to create the KCD with 
> SkipMainComponentRegistration and make sure that all the calls that need a 
> main KCD can also be called on the local KCD, so that no KStyle code would 
> ever depend on the main KCD.

This doesn't work well with KGlobalSettings::singleClick() which reads from KGlobal::config() :-)

One solution then is to duplicate the readEntry, using m_componentData.config().group(...).readEntry(...)
Doing this with SkipMainComponentRegistration is 100% safe, it's just a bit of information duplication.

But I'd much rather have that than the checkKComponentData() + kstyleInstanceCount stuff.
Let's keep it simple, it decreases the amount of bugs :)

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