Details
-
Change Request
-
Resolution: Done
-
P4: Low
-
None
-
73f3056c3ef3df8c4434c620eee5cab36a27b9f6
Description
It would be super nice to have a refactoring option that adds a variable to the class it's used within. For example, pressing alt + enter over mPicture below could bring up an option entitled "Add Member Variable":
ImageWidget(const QPicture &picture) : mPicture(picture) {
}
This would be useful when writing quick test cases for bugs, for example.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-25586 Add refactoring option to create new method stub
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-11842 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
308372,3 | CppEditor: Add class member from member initialization | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |