"prodname",
"prolog",
"publisher",
+ "qmlAttached",
"qmlDetail",
"qmlImportModule",
"qmlInheritedBy",
xmlWriter().writeAttribute("value","default");
writeEndTag(); // </qmlQualifier>
}
+ if (qpn->isAttached()) {
+ writeStartTag(DT_qmlAttached);
+ xmlWriter().writeAttribute("name","attached");
+ xmlWriter().writeAttribute("value","yes");
+ writeEndTag(); // </qmlAttached>
+ }
writeStartTag(DT_apiData);
generateQmlItem(qpn, relative, marker, false);
writeEndTag(); // </apiData>
QString marked = getMarkedUpSynopsis(n, relative, marker, CodeMarker::Detailed);
writeText(marked, marker, relative);
writeEndTag(); // </apiData>
+ if (node->isAttached()) {
+ writeStartTag(DT_qmlAttached);
+ xmlWriter().writeAttribute("name","attached");
+ xmlWriter().writeAttribute("value","yes");
+ writeEndTag(); // </qmlAttached>
+ }
writeEndTag(); // </qmlXxxDef>
writeQmlDesc(node, marker);
writeEndTag(); // </qmlXxxDetail>
return;
const FakeNode* base = qcn->qmlBase();
if (base) {
- //writeStartTag(DT_qmlInherits);
- writeStartTag(DT_qmlTypeDef);
- xmlWriter().writeAttribute("outputclass","inherits");
+ writeStartTag(DT_qmlInherits);
+ //writeStartTag(DT_qmlTypeDef);
+ //xmlWriter().writeAttribute("outputclass","inherits");
writeStartTag(DT_apiData);
Text text;
text << Atom(Atom::LinkNode,CodeMarker::stringForNode(base));
NodeList subs;
QmlClassNode::subclasses(qcn->name(),subs);
if (!subs.isEmpty()) {
- //writeStartTag(DT_qmlInheritedBy);
- writeStartTag(DT_qmlTypeDef);
- xmlWriter().writeAttribute("outputclass","inherited-by");
+ writeStartTag(DT_qmlInheritedBy);
+ //writeStartTag(DT_qmlTypeDef);
+ //xmlWriter().writeAttribute("outputclass","inherited-by");
writeStartTag(DT_apiData);
Text text;
appendSortedQmlNames(text,qcn,subs,marker);
{
ClassNode* cn = qcn->classNode();
if (cn && (cn->status() != Node::Internal)) {
- //writeStartTag(DT_qmlInstantiates);
- writeStartTag(DT_qmlTypeDef);
- xmlWriter().writeAttribute("outputclass","instantiates");
+ writeStartTag(DT_qmlInstantiates);
+ //writeStartTag(DT_qmlTypeDef);
+ //xmlWriter().writeAttribute("outputclass","instantiates");
writeStartTag(DT_apiData);
Text text;
text << Atom(Atom::LinkNode,CodeMarker::stringForNode(cn));
void DitaXmlGenerator::generateQmlSince(const Node* node)
{
if (!node->since().isEmpty()) {
- //writeStartTag(DT_qmlSince);
- writeStartTag(DT_qmlTypeDef);
- xmlWriter().writeAttribute("outputclass","since");
+ writeStartTag(DT_qmlSince);
+ //writeStartTag(DT_qmlTypeDef);
+ //xmlWriter().writeAttribute("outputclass","since");
writeStartTag(DT_apiItemName);
QStringList pieces = node->since().split(QLatin1Char(' '));
writeCharacters(pieces[0]);
virtual bool isAbstract() const { return false; }
virtual bool isQmlPropertyGroup() const { return false; }
virtual bool isCollisionNode() const { return false; }
+ virtual bool isAttached() const { return false; }
virtual void setAbstract(bool ) { }
virtual QString title() const { return QString(); }
bool isInternal() const;
bool isStored() const { return fromFlagValue(stored_,true); }
bool isDesignable() const { return fromFlagValue(designable_,false); }
bool isWritable(Tree* tree);
- bool isAttached() const { return attached_; }
bool isReadOnly() const { return fromFlagValue(readOnly_,false); }
+ virtual bool isAttached() const { return attached_; }
virtual bool isQmlNode() const { return true; }
virtual bool isQtQuickNode() const { return parent()->isQtQuickNode(); }
virtual QString qmlModuleName() const { return parent()->qmlModuleName(); }
QStringList reconstructParams(bool values = false) const;
QString signature(bool values = false) const;
const QString& element() const { return parent()->name(); }
- bool isAttached() const { return attached_; }
+ virtual bool isAttached() const { return attached_; }
virtual bool isQmlNode() const {
return ((type() == QmlSignal) ||
(type() == QmlMethod) ||