Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
5b5ae971045adebe40209150cf9e1cac6cc62191 (qt-creator/qt-creator/master)
Description
There should be a QtCreator Refactor/"Quick Fix" to generate the boilerplate code for typical Q_PROPERTY usage. When right clicking on a [private] data member variable in QtCreator, we should offer 2 new refactor options:
//ex: right-clicking on m_X int m_X;
Option 1) Declare Q_PROPERTY + NOTIFY Signal
results in:
Q_PROPERTY(int x MEMBER m_X NOTIFY xChanged) protected: void xChanged(int newX);
Option 2) Declare Q_PROPERTY
results in:
Q_PROPERTY(int x MEMBER m_X)
Attachments
Issue Links
- relates to
-
QTCREATORBUG-21804 improve the Q_PROPERTY refactor code generation (needs some options)
- Closed