From 0d65c71a193c3c14860bf3f2aa80240032d77ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 19 Dec 2018 16:46:20 +0100 Subject: Add QDebug convenience for changing the verbosity level qDebug().nospace().verbosity(3) << myObj; Change-Id: Idea3094294d1afbff302e472e47a55a01d3b7735 Reviewed-by: Thiago Macieira --- src/corelib/io/qdebug.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/corelib/io/qdebug.cpp') diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index 4d56d1a1796..ce549eda6b9 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -475,6 +475,17 @@ QDebug &QDebug::resetFormat() \sa verbosity() */ +/*! + \fn QDebug &QDebug::verbosity(int verbosityLevel) + \since 5.13 + + Sets the verbosity of the stream to \a verbosityLevel and returns a reference to the stream. + + The allowed range is from 0 to 7. The default value is 2. + + \sa verbosity(), setVerbosity() +*/ + /*! \fn QDebug &QDebug::operator<<(QChar t) -- cgit v1.2.3