diff --git a/doc/qtcreator/images/qtcreator-refactoring-options-templates.png b/doc/qtcreator/images/qtcreator-refactoring-options-templates.png index e84c7cf5824..a5e53b37bc9 100644 Binary files a/doc/qtcreator/images/qtcreator-refactoring-options-templates.png and b/doc/qtcreator/images/qtcreator-refactoring-options-templates.png differ diff --git a/doc/qtcreator/src/editors/creator-quick-fixes.qdoc b/doc/qtcreator/src/editors/creator-quick-fixes.qdoc index 282f656a983..0dee251e3a0 100644 --- a/doc/qtcreator/src/editors/creator-quick-fixes.qdoc +++ b/doc/qtcreator/src/editors/creator-quick-fixes.qdoc @@ -145,6 +145,9 @@ removed. The real Type must contain the given Type. For example, \c int matches \c int32_t but not \c vector, and \c vector matches \c {std::pmr::vector} but not \c {std::optional>}. + + To return non-trivial objects by using a \c const reference, select the + \uicontrol {Return non-value types by const reference} check box. \endif \section1 Summary of Refactoring Actions @@ -721,6 +724,13 @@ Foo * localFoo = new Foo; \endcode + By default, \QC uses the \c auto variable type when creating the + variable. To label the variable with its actual type, select + \uicontrol Edit > \uicontrol Preferences > \uicontrol C++ > + \uicontrol {Quick Fixes}, and then deselect the + \uicontrol {Use type "auto" when creating new variables} check + box. + \li Function call or class name \row \li Insert Virtual Functions of Base Classes