\n";
foreach(const Proc& p, cl.procs) {
out += "
\n";
-
- QString type(p.type);
- bool found = false;
- if (type.endsWith("*")) {
- type = type.left(type.size()-1);
- foreach(const Class& cl, classes) {
- if (cl.name == type) {
- found = true;
- break;
- }
- }
- }
- if (found)
- out += QString("
%2 ")
- .arg(type.toLower()).arg(type);
- else
- out += QString("%1 ").arg(type);
+ out += linkClass(p.type) + " ";
QRegExp re("([^(]+)\\(([^)]*)\\)");
if (re.indexIn(p.name, 0) != -1) {
- out += QString("
%2(%3)\n") .arg(re.cap(1)).arg(re.cap(2));
+ out += QString("
%2(%3)\n") .arg(re.cap(1)).arg(linkClass(re.cap(2)));
}
else {
out += QString("
%2\n").arg(p.name);
@@ -296,7 +309,7 @@ static void writeOutput()
out += QString("
%1 | "
"
%2 | "
"
%3 | ")
- .arg(m.name).arg(m.type).arg(m.description);
+ .arg(m.name).arg(linkClass(m.type)).arg(m.description);
out += "\n";
count++;
}