Doc: Describe renaming files when renaming symbols

If the symbol is a class, and filenames contain the symbol,
Qt Creator also offers to rename the files.

Change-Id: Iba467cc4bf5ec6d4098973c9d391ffaff2f3bc4b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Leena Miettinen
2017-07-21 10:36:59 +02:00
parent a6aa287720
commit 214f87b69b
2 changed files with 9 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -1956,6 +1956,9 @@
\section1 Renaming Symbols \section1 Renaming Symbols
You can rename symbols in all files in a project. When you rename a class,
you can also change filenames that match the class name.
To rename a specific symbol in a Qt project: To rename a specific symbol in a Qt project:
\list 1 \list 1
@@ -1973,15 +1976,18 @@
\image qtcreator-refactoring-replace.png \image qtcreator-refactoring-replace.png
\li To replace all selected instances, enter the name of the new symbol \li To replace all selected instances, enter the name of the new symbol
in the \uicontrol {Replace with} text box and click in the \uicontrol {Replace with} text box.
\uicontrol Replace.
To omit an instance, uncheck the check-box next to the instance. To omit an instance, uncheck the check-box next to the instance.
\li If the symbol is a class, select the \uicontrol {Rename files} check
box to also change the filenames that match the class name.
\li Select \uicontrol Replace.
\note This action replaces all selected instances of the symbol in \note This action replaces all selected instances of the symbol in
all files listed in the \uicontrol {Search Results} pane. You cannot all files listed in the \uicontrol {Search Results} pane. You cannot
undo this action. undo this action.
\endlist \endlist
\note Renaming local symbols does not open the \uicontrol {Search Results} \note Renaming local symbols does not open the \uicontrol {Search Results}