Git commit f687b9cbe4f70a31d55107a83a0ae8bdcd69ff5e by Friedrich W. H. Koss= ebau. Committed on 31/01/2017 at 20:55. Pushed by kossebau into branch '5.1'. TemplatePreviewRenderer: inject also some dummy test data Reviewers: apol, #kdevelop Reviewed By: apol, #kdevelop Subscribers: kdevelop-devel Differential Revision: https://phabricator.kde.org/D4369 M +6 -0 plugins/filetemplates/templatepreview.cpp https://commits.kde.org/kdevplatform/f687b9cbe4f70a31d55107a83a0ae8bdcd69ff= 5e diff --git a/plugins/filetemplates/templatepreview.cpp b/plugins/filetempla= tes/templatepreview.cpp index 204bbc995..a9d706a9e 100644 --- a/plugins/filetemplates/templatepreview.cpp +++ b/plugins/filetemplates/templatepreview.cpp @@ -74,6 +74,12 @@ TemplatePreviewRenderer::TemplatePreviewRenderer() vars[QStringLiteral("protected_functions")] =3D CodeDescription::toVar= iantList(protectedFunctions); vars[QStringLiteral("private_functions")] =3D CodeDescription::toVar= iantList(privateFunctions); = + vars[QStringLiteral("testCases")] =3D QStringList { + QStringLiteral("doFoo"), + QStringLiteral("doBar"), + QStringLiteral("doMore") + }; + addVariables(vars); } =20