This makes sure that changes in the debug stream - like nospace() -
do not "leak". Also use the example snippet in QDebugStateSaver
documentation.
Change-Id: I934976d2c7c2335abfec68c763526a5cbb0e6f1e
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 9f5f64e9dbd916679bd881ee0331da9a3dacac32)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>