summaryrefslogtreecommitdiff
path: root/src/qdoc/qdoc/qdocindexfiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/qdoc/qdocindexfiles.cpp')
-rw-r--r--src/qdoc/qdoc/qdocindexfiles.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qdoc/qdoc/qdocindexfiles.cpp b/src/qdoc/qdoc/qdocindexfiles.cpp
index e9bdda715..a5d49e4dc 100644
--- a/src/qdoc/qdoc/qdocindexfiles.cpp
+++ b/src/qdoc/qdoc/qdocindexfiles.cpp
@@ -402,6 +402,8 @@ void QDocIndexFiles::readIndexSection(QXmlStreamReader &reader, Node *current,
if (attributes.value(QLatin1String("bindable")) == QLatin1String("true"))
propNode->setPropertyType(PropertyNode::PropertyType::BindableProperty);
+ propNode->setWritable(attributes.value(QLatin1String("writable")) != QLatin1String("false"));
+
if (!indexUrl.isEmpty())
location = Location(indexUrl + QLatin1Char('/') + parent->name().toLower() + ".html");
else if (!indexUrl.isNull())
@@ -1015,6 +1017,9 @@ bool QDocIndexFiles::generateIndexSection(QXmlStreamWriter &writer, Node *node,
if (propertyNode->propertyType() == PropertyNode::PropertyType::BindableProperty)
writer.writeAttribute("bindable", "true");
+ if (!propertyNode->isWritable())
+ writer.writeAttribute("writable", "false");
+
if (!brief.isEmpty())
writer.writeAttribute("brief", brief);
// Property access function names