diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-01-17 16:20:45 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 02:16:32 +0100 |
commit | d394ca7f27197cfbfc28eb9a08eb0db261dd9d3d (patch) | |
tree | e75e133531101682473f91f5feca6c88c3e38c6c /src/corelib/global/global.pri | |
parent | ea783ff51f25af89b7219154d7be5de1fd138664 (diff) |
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 <faure@kde.org>
Diffstat (limited to 'src/corelib/global/global.pri')
-rw-r--r-- | src/corelib/global/global.pri | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/global/global.pri b/src/corelib/global/global.pri index 027542c6ea..fca9969db0 100644 --- a/src/corelib/global/global.pri +++ b/src/corelib/global/global.pri @@ -5,13 +5,15 @@ HEADERS += \ global/qnamespace.h \ global/qendian.h \ global/qnumeric_p.h \ - global/qnumeric.h + global/qnumeric.h \ + global/qlogging.h SOURCES += \ global/qglobal.cpp \ global/qlibraryinfo.cpp \ global/qmalloc.cpp \ - global/qnumeric.cpp + global/qnumeric.cpp \ + global/qlogging.cpp # qlibraryinfo.cpp includes qconfig.cpp INCLUDEPATH += $$QT_BUILD_TREE/src/corelib/global |