diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-08-11 09:42:27 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-08-11 09:42:27 (GMT) |
commit | a9b6b923ab870ece76891c5330fdba26ce1bf613 (patch) | |
tree | 570a53f4322015ba8805bde49fca9bb8c4578949 /tools/qdoc3/htmlgenerator.cpp | |
parent | cc997e664ab6cd9e6551ec8228d1585d2a46a3d2 (diff) | |
download | Qt-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.cpp | 3 |
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()) |