summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-04-02 10:26:42 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-02 12:27:57 +0200
commit63ef43b288598fa9323164ba4585f892e5d9e558 (patch)
treeb523b39c1abfccf607a952795f7c479b4899d398 /src/corelib/global
parent89e3506e5b36328f728cee4951df8459e4778b00 (diff)
Improve documentation for QMessageLogger
Change-Id: I6c52b74b9fa0d894492f335e2f303f927ee6307b Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qlogging.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index fedc5eb9ec..b7eab7fffe 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -75,14 +75,14 @@ QT_BEGIN_NAMESPACE
\brief The QMessageLogger class generates log messages.
\since 5.0
- QMessageLogger is used to generate messages for the Qt logging framework. Most of the time
- is transparently used through the qDebug(), qWarning(), qCritical, or qFatal() functions,
+ QMessageLogger is used to generate messages for the Qt logging framework. Usually one uses
+ it through qDebug(), qWarning(), qCritical, or qFatal() functions,
which are actually macros that expand to QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO).debug()
et al.
One example of direct use is to forward errors that stem from a scripting language, e.g. QML:
- \snippet doc/src/snippets/code/qlogging/qlogging.cpp 1
+ \snippet doc/src/snippets/code/qlogging/qloggingsnippet.cpp 1
\sa QMessageLogContext, qDebug(), qWarning(), qCritical(), qFatal()
*/