QLoggingRegistry: Look up logging configuration in Qt data path
authorKai Koehne <kai.koehne@theqtcompany.com>
Fri, 19 Jun 2015 11:38:58 +0000 (13:38 +0200)
committerKai Koehne <kai.koehne@theqtcompany.com>
Mon, 24 Aug 2015 07:17:29 +0000 (07:17 +0000)
commitcb6ab056480e39ed347d5a75e4b1b1f34443148c
treeec027691bcb19707cd98448034a2680f8828b681
parent5c95c2077ce480a2a0192babbe5efe1e23731633
QLoggingRegistry: Look up logging configuration in Qt data path

Distributions like Fedora would like to disable logging globally, without
having to patch Qt. Fedora right now therefore adds a
/etc/xdg/qtlogging.ini file, which unfortunately though also messes with
Qt versions compiled by the user.

This patch lets QLoggingRegistry look up logging configurations also
in QLibraryInfo::DataPath, which would allow to tweak the values per
Qt installation.

See also https://bugzilla.redhat.com/show_bug.cgi?id=1227295

Change-Id: I0fca304a47f45739d0c08a9e4e715673bf10aa80
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
src/corelib/io/qloggingcategory.cpp
src/corelib/io/qloggingregistry.cpp
src/corelib/io/qloggingregistry_p.h