diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-12-19 16:46:20 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-01-23 16:12:38 +0000 |
commit | 0d65c71a193c3c14860bf3f2aa80240032d77ab8 (patch) | |
tree | 5d905e6f9b6d7e3490e608a73d1a9abfb7ea67e2 /src/corelib/io/qdebug.cpp | |
parent | 4e55d8b50bbf88f1a4a9c0c5c623f444fdbd99ff (diff) |
Add QDebug convenience for changing the verbosity level
qDebug().nospace().verbosity(3) << myObj;
Change-Id: Idea3094294d1afbff302e472e47a55a01d3b7735
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
-rw-r--r-- | src/corelib/io/qdebug.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index 4d56d1a179..ce549eda6b 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -476,6 +476,17 @@ QDebug &QDebug::resetFormat() */ /*! + \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) Writes the character, \a t, to the stream and returns a reference to the |