Details
Description
There is a strange parser bug in qdbuscpp2xml.
Classes, which have Q_PROPERTY's returning a QDBusObjectPath, this properties are all ignored until there is a non-QDBusObjectPath property.
Example:
This one works, all three properties are recognized and written to the xml file:
Q_PROPERTY(QString stringproperty READ stringproperty) Q_PROPERTY(QDBusObjectPath objectProperty READ objectProperty) Q_PROPERTY(QList<QDBusObjectPath> objectpropertyList READ objectpropertyList)
only the last two properties are recognized:
Q_PROPERTY(QDBusObjectPath objectProperty READ objectProperty) Q_PROPERTY(QString stringproperty READ stringproperty) Q_PROPERTY(QList<QDBusObjectPath> objectpropertyList READ objectpropertyList)
Nothing is recognized, the xml file does not contain any property:
Q_PROPERTY(QDBusObjectPath objectProperty READ objectProperty) Q_PROPERTY(QList<QDBusObjectPath> objectpropertyList READ objectpropertyList)
Attachments
For Gerrit Dashboard: QTBUG-34550 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
521579,2 | qdbuscpp2xml: Register QtDBus metatypes | dev | qt/qtbase | Status: MERGED | +2 | 0 |