Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 4.0.0-rc1
-
Windows 7 64 bit
Description
- Open a source file which contains a functions call, e.g.:
QString s; s.length();
- Move the cursor to the function call.
- Press Alt+Enter.
Creator proposes the quick fix "Assign to Local Variable". - Press Enter to select this quick fix.
The line will be changed to:int localLength = s.length();
- Type some letters.
These will be used as name for the new variable. - Press Enter to quit editing the filename.
A newline will be inserted. - Add a usage of the new variable, e.g.:
int newName = s.length(); newName = 0;
- Move the cursor to the filename
- Press Ctrl+Shift+R to start renaming the variable.
- Type some letters.
These will be added to the existing filename. - Press Enter to quit editing the filename.
No newline will be inserted.
In both cases Creator should react in the same way to pressing Enter. I think it should just quit editing the variable's name and not add a newline.