summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qdoc/qdoc/atom.cpp4
-rw-r--r--src/qdoc/qdoc/atom.h2
-rw-r--r--src/qdoc/qdoc/docbookgenerator.cpp35
-rw-r--r--src/qdoc/qdoc/docbookgenerator.h1
-rw-r--r--src/qdoc/qdoc/docparser.cpp12
-rw-r--r--src/qdoc/qdoc/generator.cpp29
-rw-r--r--src/qdoc/qdoc/generator.h6
-rw-r--r--src/qdoc/qdoc/htmlgenerator.cpp7
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml1
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml1
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html1
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html1
-rw-r--r--tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc4
13 files changed, 0 insertions, 104 deletions
diff --git a/src/qdoc/qdoc/atom.cpp b/src/qdoc/qdoc/atom.cpp
index 69bf6fb9c..6b895769f 100644
--- a/src/qdoc/qdoc/atom.cpp
+++ b/src/qdoc/qdoc/atom.cpp
@@ -52,7 +52,6 @@ QT_BEGIN_NAMESPACE
\value CodeQuoteCommand
\value DivLeft
\value DivRight
- \value EndQmlText
\value ExampleFileLink
\value ExampleImageLink
\value FormatElse
@@ -85,7 +84,6 @@ QT_BEGIN_NAMESPACE
\value ParaLeft
\value ParaRight
\value Qml
- \value QmlText
\value QuotationLeft
\value QuotationRight
\value RawString
@@ -134,7 +132,6 @@ static const struct
{ "CodeQuoteCommand", Atom::CodeQuoteCommand },
{ "DivLeft", Atom::DivLeft },
{ "DivRight", Atom::DivRight },
- { "EndQmlText", Atom::EndQmlText },
{ "ExampleFileLink", Atom::ExampleFileLink },
{ "ExampleImageLink", Atom::ExampleImageLink },
{ "FootnoteLeft", Atom::FootnoteLeft },
@@ -172,7 +169,6 @@ static const struct
{ "ParaLeft", Atom::ParaLeft },
{ "ParaRight", Atom::ParaRight },
{ "Qml", Atom::Qml },
- { "QmlText", Atom::QmlText },
{ "QuotationLeft", Atom::QuotationLeft },
{ "QuotationRight", Atom::QuotationRight },
{ "RawString", Atom::RawString },
diff --git a/src/qdoc/qdoc/atom.h b/src/qdoc/qdoc/atom.h
index 1dc3806c9..ba453254b 100644
--- a/src/qdoc/qdoc/atom.h
+++ b/src/qdoc/qdoc/atom.h
@@ -33,7 +33,6 @@ public:
CodeQuoteCommand,
DivLeft,
DivRight,
- EndQmlText,
ExampleFileLink,
ExampleImageLink,
FootnoteLeft,
@@ -71,7 +70,6 @@ public:
ParaLeft,
ParaRight,
Qml,
- QmlText,
QuotationLeft,
QuotationRight,
RawString,
diff --git a/src/qdoc/qdoc/docbookgenerator.cpp b/src/qdoc/qdoc/docbookgenerator.cpp
index ceb2fa301..b849e5453 100644
--- a/src/qdoc/qdoc/docbookgenerator.cpp
+++ b/src/qdoc/qdoc/docbookgenerator.cpp
@@ -1767,10 +1767,6 @@ qsizetype DocBookGenerator::generateAtom(const Atom *atom, const Node *relative)
m_writer->writeEndElement(); // code
m_writer->writeEndElement(); // emphasis
break;
- case Atom::QmlText:
- case Atom::EndQmlText:
- // Don't do anything with these. They are just tags.
- Q_FALLTHROUGH();
case Atom::CodeQuoteArgument:
case Atom::CodeQuoteCommand:
case Atom::SnippetCommand:
@@ -4853,34 +4849,6 @@ void DocBookGenerator::generatePageNode(PageNode *pn)
}
/*!
- Extract sections of markup text and output them.
- */
-bool DocBookGenerator::generateQmlText(const Text &text, const Node *relative)
-{
- // From Generator::generateQmlText.
- const Atom *atom = text.firstAtom();
- bool result = false;
-
- if (atom != nullptr) {
- initializeTextOutput();
- while (atom) {
- if (atom->type() != Atom::QmlText)
- atom = atom->next();
- else {
- atom = atom->next();
- while (atom && (atom->type() != Atom::EndQmlText)) {
- int n = 1 + generateAtom(atom, relative);
- while (n-- > 0)
- atom = atom->next();
- }
- }
- }
- result = true;
- }
- return result;
-}
-
-/*!
Generate the DocBook page for a QML type. \qcn is the QML type.
*/
void DocBookGenerator::generateQmlTypePage(QmlTypeNode *qcn)
@@ -4903,9 +4871,6 @@ void DocBookGenerator::generateQmlTypePage(QmlTypeNode *qcn)
startSection("details", "Detailed Description");
generateBody(qcn);
- ClassNode *cn = qcn->classNode();
- if (cn)
- generateQmlText(cn->doc().body(), cn);
generateAlsoList(qcn);
endSection();
diff --git a/src/qdoc/qdoc/docbookgenerator.h b/src/qdoc/qdoc/docbookgenerator.h
index dfcbcc62c..fe9f9ba3a 100644
--- a/src/qdoc/qdoc/docbookgenerator.h
+++ b/src/qdoc/qdoc/docbookgenerator.h
@@ -108,7 +108,6 @@ private:
void generateLegaleseList(const Node *relative);
void generateExampleFilePage(const Node *en, ResolvedFile resolved_file, CodeMarker* = nullptr) override;
void generateOverloadedSignal(const Node *node);
- bool generateQmlText(const Text &text, const Node *relative) override;
void generateRequiredLinks(const Node *node);
void generateLinkToExample(const ExampleNode *en, const QString &baseUrl);
diff --git a/src/qdoc/qdoc/docparser.cpp b/src/qdoc/qdoc/docparser.cpp
index 74e9584e8..c638cde4e 100644
--- a/src/qdoc/qdoc/docparser.cpp
+++ b/src/qdoc/qdoc/docparser.cpp
@@ -116,8 +116,6 @@ enum {
CMD_ENDQML,
CMD_CPP,
CMD_ENDCPP,
- CMD_QMLTEXT,
- CMD_ENDQMLTEXT,
CMD_CPPTEXT,
CMD_ENDCPPTEXT,
NOT_A_CMD
@@ -218,8 +216,6 @@ static struct
{ "endqml", CMD_ENDQML },
{ "cpp", CMD_CPP },
{ "endcpp", CMD_ENDCPP },
- { "qmltext", CMD_QMLTEXT },
- { "endqmltext", CMD_ENDQMLTEXT },
{ "cpptext", CMD_CPPTEXT },
{ "endcpptext", CMD_ENDCPPTEXT },
{ nullptr, 0 } };
@@ -386,9 +382,6 @@ void DocParser::parse(const QString &source, DocPrivate *docPrivate,
getCode(CMD_QML, CodeMarker::markerForLanguage(QLatin1String("QML")),
getMetaCommandArgument(cmdStr)));
break;
- case CMD_QMLTEXT:
- append(Atom::QmlText);
- break;
case CMD_DIV:
leavePara();
p1 = getArgument(true);
@@ -448,9 +441,6 @@ void DocParser::parse(const QString &source, DocPrivate *docPrivate,
case CMD_ENDQML:
closeCommand(cmd);
break;
- case CMD_ENDQMLTEXT:
- append(Atom::EndQmlText);
- break;
case CMD_ENDFOOTNOTE:
if (closeCommand(cmd)) {
leavePara();
@@ -2439,8 +2429,6 @@ int DocParser::endCmdFor(int cmd)
return CMD_ENDDIV;
case CMD_QML:
return CMD_ENDQML;
- case CMD_QMLTEXT:
- return CMD_ENDQMLTEXT;
case CMD_FOOTNOTE:
return CMD_ENDFOOTNOTE;
case CMD_LEGALESE:
diff --git a/src/qdoc/qdoc/generator.cpp b/src/qdoc/qdoc/generator.cpp
index 9dfe88a0b..c4f6ff233 100644
--- a/src/qdoc/qdoc/generator.cpp
+++ b/src/qdoc/qdoc/generator.cpp
@@ -1093,35 +1093,6 @@ void Generator::generateDocumentation(Node *node)
}
}
-/*!
- Extract sections of markup text surrounded by \e qmltext
- and \e endqmltext and output them.
- */
-bool Generator::generateQmlText(const Text &text, const Node *relative, CodeMarker *marker,
- const QString & /* qmlName */)
-{
- const Atom *atom = text.firstAtom();
- bool result = false;
-
- if (atom != nullptr) {
- initializeTextOutput();
- while (atom) {
- if (atom->type() != Atom::QmlText)
- atom = atom->next();
- else {
- atom = atom->next();
- while (atom && (atom->type() != Atom::EndQmlText)) {
- int n = 1 + generateAtom(atom, relative, marker);
- while (n-- > 0)
- atom = atom->next();
- }
- }
- }
- result = true;
- }
- return result;
-}
-
void Generator::generateReimplementsClause(const FunctionNode *fn, CodeMarker *marker)
{
if (fn->overridesThis().isEmpty() || !fn->parent()->isClassNode())
diff --git a/src/qdoc/qdoc/generator.h b/src/qdoc/qdoc/generator.h
index 2c9be87cc..fbbff827f 100644
--- a/src/qdoc/qdoc/generator.h
+++ b/src/qdoc/qdoc/generator.h
@@ -92,12 +92,6 @@ protected:
virtual void generateCollectionNode(CollectionNode *, CodeMarker *) {}
virtual void generateGenericCollectionPage(CollectionNode *, CodeMarker *) {}
virtual void generateDocumentation(Node *node);
- virtual bool generateQmlText(const Text &text, const Node *relative, CodeMarker *marker,
- const QString &qmlName);
- virtual bool generateQmlText(const Text &text, const Node *relative)
- {
- return generateQmlText(text, relative, nullptr, QString());
- }
virtual bool generateText(const Text &text, const Node *relative, CodeMarker *marker);
virtual bool generateText(const Text &text, const Node *relative)
{
diff --git a/src/qdoc/qdoc/htmlgenerator.cpp b/src/qdoc/qdoc/htmlgenerator.cpp
index e3b91955c..74ce2be7e 100644
--- a/src/qdoc/qdoc/htmlgenerator.cpp
+++ b/src/qdoc/qdoc/htmlgenerator.cpp
@@ -966,10 +966,6 @@ qsizetype HtmlGenerator::generateAtom(const Atom *atom, const Node *relative, Co
case Atom::UnknownCommand:
out() << R"(<b class="redFont"><code translate=\"no\">\)" << protectEnc(atom->string()) << "</code></b>";
break;
- case Atom::QmlText:
- case Atom::EndQmlText:
- // don't do anything with these. They are just tags.
- break;
case Atom::CodeQuoteArgument:
case Atom::CodeQuoteCommand:
case Atom::SnippetCommand:
@@ -1416,9 +1412,6 @@ void HtmlGenerator::generateQmlTypePage(QmlTypeNode *qcn, CodeMarker *marker)
<< "Detailed Description"
<< "</h2>\n";
generateBody(qcn, marker);
- ClassNode *cn = qcn->classNode();
- if (cn)
- generateQmlText(cn->doc().body(), cn, marker, qcn->name());
generateAlsoList(qcn, marker);
generateExtractionMark(qcn, EndMark);
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml
index 8c2e3d93d..878fb3211 100644
--- a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml
+++ b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml
@@ -23,7 +23,6 @@
<db:para><db:emphasis role="bold">All your text belong to bold</db:emphasis> ...And this is an examble of only <db:emphasis role="bold">bold</db:emphasis> being, well, bold.</db:para>
<db:programlisting language="cpp"> ...
</db:programlisting>
-<db:para>And if I knew qmltext, I guess this is where that would go. </db:para>
<db:title>This a caption</db:title>
<db:para>Lorem legal ipsum</db:para>
<db:blockquote><db:para>This is a quotation.</db:para>
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml
index 561d139cf..a02025ddd 100644
--- a/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml
+++ b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml
@@ -30,7 +30,6 @@
<para>
<bold>All your text belong to bold</bold> ...And this is an examble of only <bold>bold</bold> being, well, bold.</para>
<dots indent="4">...</dots>
- <para>And if I knew qmltext, I guess this is where that would go. </para>
<para>This a caption</para>
<legalese>
<para>Lorem legal ipsum</para>
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html b/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html
index 2f0715651..f62cbba6c 100644
--- a/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html
+++ b/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html
@@ -33,7 +33,6 @@
noooow.</p>
<p><b>All your text belong to bold</b> ..&#x2e;And this is an examble of only <b>bold</b> being, well, bold.</p>
<pre class="cpp" translate="no"> ...</pre>
-<p>And if I knew qmltext, I guess this is where that would go. </p>
<p class="figCaption">This a caption</p>
<div class="LegaleseLeft"><p>Lorem legal ipsum</p>
</div><blockquote><p>This is a quotation.</p>
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html b/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html
index d034691da..e9570d9ea 100644
--- a/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html
+++ b/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html
@@ -42,7 +42,6 @@
noooow.</p>
<p><b>All your text belong to bold</b> ..&#x2e;And this is an examble of only <b>bold</b> being, well, bold.</p>
<pre class="cpp" translate="no"> ...</pre>
-<p>And if I knew qmltext, I guess this is where that would go. </p>
<p class="figCaption">This a caption</p>
<div class="LegaleseLeft"><p>Lorem legal ipsum</p>
</div><blockquote><p>This is a quotation.</p>
diff --git a/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc b/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc
index 99f23b722..53fe34666 100644
--- a/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc
+++ b/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc
@@ -116,10 +116,6 @@
\dots
- \qmltext
- And if I knew qmltext, I guess this is where that would go.
- \endqmltext
-
\caption This a caption
\legalese