Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
6.9
-
None
Description
Consider this class
class Foo : public QObject { Q_OBJECT Q_PROPERTY(int x READ X CONSTANT) Q_PROPERTY(int y READ X CONSTANT) }; /*! * \qmltype Foo * */ /*! * \qmlproperty int Foo::x * \readonly */ /*! * \qmlproperty int Foo::y */
Both x and y are read-only properties, however only x shows up as such in the documentation, because it is marked as such. It would be nice if qdoc automatically detected the lack of WRITE in the property declaration for y and mark it as read-only automatically.