Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
Qt Creator 3.3.0-beta1
-
Windows 7 64 bit
Description
- Create a new Qt Widgets Application project.
- Open the project's mainwindow.h.
- At the beginning of the file, insert the attached header. It's taken from an old example project.
- Save and close all files.
- Right-click on mainwindow.h in Projects view and rename it to "FILE".
It moves to "Other files". - Oops, wrong file name. Rename it to "file".
- Oops, wrong again. rename it to "rightname.h".
- Open main.cpp
The first line reads:#include "file"
Creator should not lose track of the headers during renaming.
IIRC this happens because only the beginning of files is being parsed to recognize their type. The copyright header is so long that Creator doesn't find any C++ and thus does not notice it is a header file.
Found with the help of Squish test tst_rename_file.