diff --git a/plugins/filetemplates/templatepreview.cpp b/plugins/filetemplates/templatepreview.cpp --- a/plugins/filetemplates/templatepreview.cpp +++ b/plugins/filetemplates/templatepreview.cpp @@ -74,6 +74,12 @@ vars[QStringLiteral("protected_functions")] = CodeDescription::toVariantList(protectedFunctions); vars[QStringLiteral("private_functions")] = CodeDescription::toVariantList(privateFunctions); + vars[QStringLiteral("testCases")] = QStringList { + QStringLiteral("doFoo"), + QStringLiteral("doBar"), + QStringLiteral("doMore") + }; + addVariables(vars); }