From 95375152974fa7e0e4d4cec7007d942dd5e9615e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 15 Mar 2015 13:17:14 +0100 Subject: Fixes for showing type constraint relations --- src/classdef.cpp | 3 ++- src/xmlgen.cpp | 6 ++++++ templates/xml/compound.xsd | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/classdef.cpp b/src/classdef.cpp index ea6eece..d48efd0 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -2532,9 +2532,10 @@ bool ClassDef::hasExamples() const void ClassDef::addTypeConstraint(const QCString &typeConstraint,const QCString &type) { + //printf("addTypeContraint(%s,%s)\n",type.data(),typeConstraint.data()); static bool hideUndocRelation = Config_getBool("HIDE_UNDOC_RELATIONS"); if (typeConstraint.isEmpty() || type.isEmpty()) return; - ClassDef *cd = getClass(typeConstraint); + ClassDef *cd = getResolvedClass(this,getFileDef(),typeConstraint); if (cd==0 && !hideUndocRelation) { cd = new ClassDef(getDefFileName(),getDefLine(),getDefColumn(),typeConstraint,ClassDef::Class); diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index c2eddd5..215b88a 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -394,6 +394,12 @@ static void writeTemplateArgumentList(ArgumentList *al, linkifyText(TextGeneratorXMLImpl(t),scope,fileScope,0,a->defval); t << "" << endl; } + if (!a->typeConstraint.isEmpty()) + { + t << indentStr << " "; + linkifyText(TextGeneratorXMLImpl(t),scope,fileScope,0,a->typeConstraint); + t << "" << endl; + } t << indentStr << " " << endl; } t << indentStr << "" << endl; diff --git a/templates/xml/compound.xsd b/templates/xml/compound.xsd index ff516e3..c960c7b 100644 --- a/templates/xml/compound.xsd +++ b/templates/xml/compound.xsd @@ -220,6 +220,7 @@ + -- cgit v0.12