diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2019-12-23 15:59:18 +0100 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-01-05 15:31:31 +0100 |
commit | a936cf492407f5d675bbed74e58cf74b0a567090 (patch) | |
tree | 5d5848c5bb47403766172e75837e83fc241a2c3c | |
parent | df7c519dc5677134badd5a1cd1d2fe6b1f0b4573 (diff) |
Shiboken: QtDoc: Change the order of entries at the beginning
In the class reference RSTs, the label entry must appear at first
before the current module entry. In addition, there must be at
least two empty lines before the page title. Otherwise, the
module's index page drops out of the toctree, resulting in
incomplete navigation breadcrumb.
Change-Id: I65a35b0bb9f2946fb5d45b1d1b8a453c20745e79
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp index 9c9a2ff1e..791d9faea 100644 --- a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp @@ -1622,9 +1622,9 @@ void QtDocGenerator::generateClass(QTextStream &s, GeneratorContext &classContex m_docParser->setPackageName(metaClass->package()); m_docParser->fillDocumentation(const_cast<AbstractMetaClass*>(metaClass)); - s << ".. currentmodule:: " << metaClass->package() << endl; QString className = getClassTargetFullName(metaClass, false); - s << ".. _" << className << ":" << endl << endl; + s << ".. _" << className << ":" << "\n\n"; + s << ".. currentmodule:: " << metaClass->package() << "\n\n\n"; s << className << endl; s << Pad('*', className.count()) << endl << endl; |