diff --git a/doc/qtcreator/images/qtcreator-move-class-to-separate-files.webp b/doc/qtcreator/images/qtcreator-move-class-to-separate-files.webp new file mode 100644 index 00000000000..5a9540c25e9 Binary files /dev/null and b/doc/qtcreator/images/qtcreator-move-class-to-separate-files.webp differ diff --git a/doc/qtcreator/src/editors/creator-only/creator-cpp-quick-fixes.qdoc b/doc/qtcreator/src/editors/creator-only/creator-cpp-quick-fixes.qdoc index 54ed36c23ba..1a38c359292 100644 --- a/doc/qtcreator/src/editors/creator-only/creator-cpp-quick-fixes.qdoc +++ b/doc/qtcreator/src/editors/creator-only/creator-cpp-quick-fixes.qdoc @@ -227,6 +227,14 @@ // do stuff here } \endcode + \row + \li Move Class to a Dedicated Set of Source Files + \li Moves a class to separate header and source files. For more + information, see \l{Move classes to separate files}. + \row + \li Re-order Member Function Definitions According to Declaration Order + \li Re-orders method definitions in a .cpp file to follow the order of + method declarations in the corresponding .h file. \endtable \section1 Class Member @@ -333,7 +341,7 @@ \li Quick Fix \li Description \row - \li Add Definition in ... + \li Add Definition ... \li Inserts a definition stub for a function declaration either in the header file (inside or outside the class) or in the implementation file. For free functions, inserts the definition @@ -401,6 +409,10 @@ When this fix is available, a light bulb icon appears: \inlineimage icons/refactormarker.png + \row + \li Convert Function Call to Qt Meta-Method Invocation + \li Converts a normal function call into a meta method invocation, if + the function is marked as invokable. \row \li Move Definition Here \li Moves an existing function definition to its declaration. diff --git a/doc/qtcreator/src/editors/creator-quick-fixes.qdoc b/doc/qtcreator/src/editors/creator-quick-fixes.qdoc index 7e02f60c650..6ef8f778737 100644 --- a/doc/qtcreator/src/editors/creator-quick-fixes.qdoc +++ b/doc/qtcreator/src/editors/creator-quick-fixes.qdoc @@ -38,7 +38,7 @@ By default, the refactored files are saved automatically. To turn off this feature, go to \preferences > \uicontrol Environment > - \uicontrol System and select \uicontrol {Auto-save files after refactoring}. + \uicontrol System and clear \uicontrol {Auto-save files after refactoring}. \if defined(qtcreator) \section1 Create functions @@ -94,6 +94,17 @@ {C++ Quick Fixes} \endif + \section1 Move classes to separate files + + Apply the \uicontrol {Move Class to a Dedicated Set of Source Files} quick + fix to move a class to a separate set of header and implementation files. + + \image qtcreator-move-class-to-separate-files.webp {Give names to header and implementation files} + + Specify paths and file names for the header and implementation file. + + To omit the implementation file, select \uicontrol {Header file only}. + \sa {Rename symbols}, {QML Quick Fixes} */