Skip to content

Use universal helper for writing toplevels to QDebug streams

Vlad Zahorodnii requested to merge work/universal-debug-output into master

Toplevel::debug() is one of annoyances that you need to deal with when implementing a new client type. It can be tempting to just write "this" to the stream, but it will result in a crash.

In order to make implementing new client types easier, this change introduces a debug stream insertion operator overload that works for all kinds of the Toplevel class.

Merge request reports

Loading