Details
-
Bug
-
Resolution: Unresolved
-
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.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-136005 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
642312,2 | QDoc: Verify that read-only C++ properties are not always recognized | dev | qt/qttools | Status: NEW | 0 | 0 |