Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
None
-
Foundation Sprint 72
Description
moc should warn if I try to do something stupid like this:
class MyClass : public QObject { Q_OBJECT Q_PROPERTY(bool prop READ prop) bool m_prop; public: Q_INVOKABLE bool prop() { return m_prop; } }
And likewise if the bool prop() method were a slot since in both cases the method name will clash with the property name when used from a QML/Javascript context.