From c2e69f7cfbd462a00d70e4d8083b98a7b0ce3e81 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 10 Jan 2017 22:16:02 +0100 Subject: [PATCH] Debugger: Add some examples of dumper function names Change-Id: I898f8a7dafbca3beb6fdba9c93350b0488973a46 Reviewed-by: Leena Miettinen --- doc/src/debugger/creator-debugger.qdoc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/src/debugger/creator-debugger.qdoc b/doc/src/debugger/creator-debugger.qdoc index 14c75c9cf0f..1096ab7516a 100644 --- a/doc/src/debugger/creator-debugger.qdoc +++ b/doc/src/debugger/creator-debugger.qdoc @@ -997,7 +997,23 @@ Python function, which needs to be named \c{qdump__NS__Foo}, where \c{NS::Foo} is the class or class template to be examined. Note that the \c{::} scope resolution operator is replaced by double underscores: \c{__}. - Nested namespaces are possible. + Nested namespaces are possible. Template arguments are not used for + the construction of the function name. + + Examples: + + \list + + \li The name for the function implementing a debugging helper for the type + \c{namespace Project { template struct Foo {... } } } is + \c{qdump__Project_Foo}. + + \li The name for the function implementing a debugging helper + for the type \c{std::__1::vector::iterator} is + \c{qdump__std____1__vector__iterator}. + + \endlist + \QC's debugger plugin calls this function whenever you want to display an object of this type. The function is passed the following parameters: