summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-25 21:17:22 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-25 21:59:46 -0300
commit47499427e506893068e1d2a0262fdb0ea9e57fc3 (patch)
treee77cc20e59b21c056cc612bc27ed034dce7279b7
parentfd52957d375eb990a0fabbfab35d36480ee057ae (diff)
downloadgeneratorrunner-47499427e506893068e1d2a0262fdb0ea9e57fc3.tar.gz
generatorrunner-47499427e506893068e1d2a0262fdb0ea9e57fc3.tar.xz
generatorrunner-47499427e506893068e1d2a0262fdb0ea9e57fc3.zip
moved the code for prepending the Sphinx tag '~' to QtXmlToSphinx::resolveContextForMethod
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index 762c8a9..931a84a 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -159,7 +159,7 @@ QString QtXmlToSphinx::resolveContextForMethod(const QString& methodName)
return implementingClass->name();
}
- return m_context;
+ return QLatin1String("~") + m_context;
}
QString QtXmlToSphinx::transform(const QString& doc)
@@ -518,7 +518,7 @@ void QtXmlToSphinx::handleLinkTag(QXmlStreamReader& reader)
QStringList rawlinklist = l_linkref.split(".");
if (rawlinklist.size() == 1 || rawlinklist.first() == m_context) {
QString context = resolveContextForMethod(rawlinklist.last());
- l_linkref.prepend('~' + context + '.');
+ l_linkref.prepend(context + '.');
}
} else if (l_type == "function" && m_context.isEmpty()) {
l_linktag = " :func:`";