summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/htmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-08-11 09:42:27 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-08-11 09:42:27 (GMT)
commita9b6b923ab870ece76891c5330fdba26ce1bf613 (patch)
tree570a53f4322015ba8805bde49fca9bb8c4578949 /tools/qdoc3/htmlgenerator.cpp
parentcc997e664ab6cd9e6551ec8228d1585d2a46a3d2 (diff)
downloadQt-a9b6b923ab870ece76891c5330fdba26ce1bf613.zip
Qt-a9b6b923ab870ece76891c5330fdba26ce1bf613.tar.gz
Qt-a9b6b923ab870ece76891c5330fdba26ce1bf613.tar.bz2
qdoc3: Updates for QTBUG-20739 (no read-only for QML components)
Task-number: QTBUG-20739
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index c7b6490..c0a32d8 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -3851,7 +3851,8 @@ void HtmlGenerator::generateDetailedQmlMember(const Node *node,
out() << "<a name=\"" + refForNode(qpn) + "\"></a>";
- if (!qpn->isWritable(myTree)) {
+ const ClassNode* cn = qpn->declarativeCppNode();
+ if (cn && !qpn->isWritable(myTree)) {
out() << "<span class=\"qmlreadonly\">read-only</span>";
}
if (qpgn->isDefault())