kdebug area for oxygen style

David Faure faure at kde.org
Thu Sep 9 19:00:25 BST 2010


On Thursday 09 September 2010, Hugo Pereira Da Costa wrote:
> Hello,
> 
> I'd like to have a dedicated kdebug area for oxygen style (rather than
> using the default, that quite often falls back to the calling application
> area, which is not convenient.
> 
> What's the best way to proceed ?
> 
> 1/ dynamic way (with kdebug::registerArea)

Yes please. This should work just fine and should be easy to use in the case of 
oxygen which doesn't even have that many source files. You can use the "extern 
int" solution described in the kdebug documentation if you need to use the 
area from multiple files, if you don't already have a shared global object 
somewhere.

> 2/ static, by modifying kdelibs/kdecore/kdebug.areas ?
> 
> Reading http://lists.kde.org/?l=kde-devel&m=106607933724723&w=2, option 2.
> seems quite legit.

That email is waaaayyy old, before dynamic areas existed.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).




More information about the kde-core-devel mailing list