From 169f7f0f02541f97ed080634df232e8cc8f3ded8 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 6 Oct 2020 15:57:10 +0200 Subject: Doxywizard expert page without settings In case of not compiling with Sqlite3 the page in the doxywizard regarding Sqlite3 remains empty. This is a bit strange as there is a setting possible (and is present) to make the group also aware of the compilation settings. --- addon/doxywizard/expert.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp index c043994..f088199 100644 --- a/addon/doxywizard/expert.cpp +++ b/addon/doxywizard/expert.cpp @@ -139,10 +139,14 @@ void Expert::createTopics(const QDomElement &rootElem) { // Remove _ from a group name like: Source_Browser QString name = childElem.attribute(SA("name")).replace(SA("_"),SA(" ")); - items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(name))); - QWidget *widget = createTopicWidget(childElem); - m_topics[name] = widget; - m_topicStack->addWidget(widget); + QString setting = childElem.attribute(SA("setting")); + if (setting.isEmpty() || IS_SUPPORTED(setting.toLatin1())) + { + items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(name))); + QWidget *widget = createTopicWidget(childElem); + m_topics[name] = widget; + m_topicStack->addWidget(widget); + } } childElem = childElem.nextSiblingElement(); } -- cgit v0.12