From 70774513a8190d4eaf18496e7833ab4c521fbb34 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 28 Jan 2011 17:15:33 -0300 Subject: Type system %TYPE variable is now available for class wide custom code. %TYPE documentation was updated. --- generator/shibokengenerator.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'generator/shibokengenerator.cpp') diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index 06e526775..72f396d0e 100644 --- a/generator/shibokengenerator.cpp +++ b/generator/shibokengenerator.cpp @@ -1144,6 +1144,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, // replace template variable for the Python Type object for the // class context in which the variable is used code.replace("%PYTHONTYPEOBJECT", cpythonTypeName(context) + ".super.ht_type"); + code.replace("%TYPE", wrapperName(context)); } // replace "toPython "converters -- cgit v1.2.3