Doc: Describe "Generate Constructor" refactoring action

Fix entry in the change log to use the correct action name.
Also fix the entry above to use the action name.

Task-number: QTCREATORBUG-25162
Change-Id: Iebc2c6634c7bdc51ab97bb48ecce081e4000eccb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Leena Miettinen
2021-02-22 16:33:14 +01:00
parent 1ca2affa74
commit 870e495479
3 changed files with 20 additions and 4 deletions

View File

@@ -33,8 +33,9 @@ Editing
### C++
* Added options for generation of getters and setters (QTCREATORBUG-1532)
* Added `Create Constructor` refactoring operation
* Added `Create Getter and Setter Member Functions` refactoring action
(QTCREATORBUG-1532)
* Added `Generate Constructor` refactoring action
* Added filtering of `Find Usages` based on access type (QTCREATORBUG-19373)
* Added `Open in Editor` and `Open Type Hierarchy` to context menu on items in
type hierarchy

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -184,7 +184,8 @@
\section1 Creating Functions
You can apply refactoring actions to implement member functions, insert
virtual functions of base classes, and greate getter and setter functions.
virtual functions of base classes, create getter and setter functions,
and generate constructors.
\section2 Implementing Member Functions
@@ -217,6 +218,16 @@
for member variables or only a getter or setter.
\image qtcreator-refactoring-getters-and-setters.png "Getters and Setters dialog"
\section2 Generating Constructors
You can apply the \uicontrol {Generate Constructor} refactoring action to
create a public, protected, or private constructor for a class. Select the
class members to initialize in the constructor. Drag and drop the parameters
to specify their order in the constructor.
\image qtcreator-refactoring-constructor.png "Constructor dialog"
\endif
\section1 Summary of Refactoring Actions
@@ -668,6 +679,10 @@
\li Creates either both getter and setter member functions for
member variables or only a getter or setter.
\li Member variable in class definition
\row
\li Generate Constructor
\li Creates a constructor for a class.
\li Class definition
\row
\li Move Function Definition
\li Moves a function definition to the implementation file, outside