summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qdoc/generator.cpp')
-rw-r--r--src/tools/qdoc/generator.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tools/qdoc/generator.cpp b/src/tools/qdoc/generator.cpp
index e6c5ae9062..97a980a3fa 100644
--- a/src/tools/qdoc/generator.cpp
+++ b/src/tools/qdoc/generator.cpp
@@ -136,6 +136,7 @@ Generator::Generator()
inSectionHeading_(false),
inTableHeader_(false),
threeColumnEnumValueTable_(true),
+ showInternal_(false),
numTableRows_(0)
{
qdb_ = QDocDatabase::qdocDB();
@@ -350,7 +351,11 @@ QString Generator::fileBase(const Node *node) const
base.append("-module");
}
if (node->isExample() || node->isExampleFile()) {
- base.prepend(project.toLower() + QLatin1Char('-'));
+ QString modPrefix(node->moduleName());
+ if (modPrefix.isEmpty()) {
+ modPrefix = project;
+ }
+ base.prepend(modPrefix.toLower() + QLatin1Char('-'));
}
if (node->isExample()) {
base.append(QLatin1String("-example"));
@@ -964,6 +969,8 @@ void Generator::generateInnerNode(InnerNode* node)
return;
if (node->isIndexNode())
return;
+ if (node->isInternal() && !showInternal_)
+ return;
if (node->type() == Node::Document) {
DocNode* docNode = static_cast<DocNode*>(node);
@@ -1666,6 +1673,7 @@ void Generator::augmentImageDirs(QSet<QString>& moreImageDirs)
void Generator::initializeGenerator(const Config& config)
{
config_ = &config;
+ showInternal_ = config.getBool(CONFIG_SHOWINTERNAL);
}
bool Generator::matchAhead(const Atom *atom, Atom::Type expectedAtomType)