Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
Qt Creator 4.2.1
-
None
-
5b5ae971045adebe40209150cf9e1cac6cc62191 (qt-creator/qt-creator/master)
Description
I usually do not declare getter/setter functions on .cpp file.
This suggestion is to add another button to only create these functions on the header file.
Eg:
void setVariable(const Type& variable)
Type getVariable() const
{ return m_variable; }The new button is just a thought on the easiest way to achieve this.