Connector Class

A class for testing Q_QDOC-style template parameter overloads. More...

Header: #include <template_sugar.h>

Public Functions

void invoke(Functor callback)
void invoke(PointerToMemberFunction callback, int priority)

Detailed Description

Connector exercises the code path in findNodeForCursor where two overloads differ only in template parameter names, such as Functor vs PointerToMemberFunction. Without the TemplateTypeParmType guard, canonical comparison collapses both names to type-parameter-0-0, causing one overload to shadow the other.

Member Function Documentation

template <typename Functor> void Connector::invoke(Functor callback)

Invokes callback asynchronously.

template <typename PointerToMemberFunction> void Connector::invoke(PointerToMemberFunction callback, int priority)

Invokes callback with the given priority.