From 9bd41062978abaca0536f0f4259337ede7530c78 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Mon, 2 Apr 2012 12:17:06 +0200 Subject: qdoc: Add the \hr command Now you can out put a horizontal line anywhere in your text. Change-Id: I9b8bbbd6aa312e8386fb1a3b165876d76057f784 Reviewed-by: Casper van Donderen --- src/tools/qdoc/doc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools/qdoc/doc.cpp') diff --git a/src/tools/qdoc/doc.cpp b/src/tools/qdoc/doc.cpp index 6bc3086551..3c1bab17af 100644 --- a/src/tools/qdoc/doc.cpp +++ b/src/tools/qdoc/doc.cpp @@ -118,6 +118,7 @@ enum { CMD_GENERATELIST, CMD_GRANULARITY, CMD_HEADER, + CMD_HR, CMD_I, CMD_IF, CMD_IMAGE, @@ -235,6 +236,7 @@ static struct { { "generatelist", CMD_GENERATELIST, 0 }, { "granularity", CMD_GRANULARITY, 0 }, // ### don't document for now { "header", CMD_HEADER, 0 }, + { "hr", CMD_HR, 0 }, { "i", CMD_I, 0 }, { "if", CMD_IF, 0 }, { "image", CMD_IMAGE, 0 }, @@ -904,6 +906,10 @@ void DocParser::parse(const QString& source, case CMD_E: startFormat(ATOM_FORMATTING_ITALIC, cmd); break; + case CMD_HR: + leavePara(); + append(Atom::HR); + break; case CMD_IF: preprocessorSkipping.push(!Tokenizer::isTrue(getRestOfLine())); if (preprocessorSkipping.top()) -- cgit v1.2.3