From d394ca7f27197cfbfc28eb9a08eb0db261dd9d3d Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 17 Jan 2012 16:20:45 +0100 Subject: QtDebug: Include file, line, function information Record the file, line, and function where a qDebug, qWarning, qCritical or qFatal call happens, and make this information available in a custom message handler. The patch uses the C preprocessor to replace qDebug, qWarning, ... with a line that also records the current file, line, and function. Custom message handlers can access this information via a new QMessageLogContext argument. Change-Id: I0a9b89c1d137e41775932d3b1a35da4ebf12d18d Reviewed-by: David Faure --- tests/auto/corelib/global/global.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/corelib/global/global.pro') diff --git a/tests/auto/corelib/global/global.pro b/tests/auto/corelib/global/global.pro index e9b547be68..a6c638f530 100644 --- a/tests/auto/corelib/global/global.pro +++ b/tests/auto/corelib/global/global.pro @@ -5,4 +5,5 @@ SUBDIRS=\ qgetputenv \ qglobal \ qnumeric \ - qrand + qrand \ + qmessagehandler -- cgit v1.2.3