Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Creator Code File Refactoring

I was wondering if anyone know of a quick and easy way to refactor the code files in my QT Project using QTCreator? Specifically I am trying to organize my source files and Its a bit of a pain to have to go back into the project file and change the filepath for each file. Not to mention moving a dialog class is even worse (there are .ui files not included in the project but you have to change those too.

like image 287
jecjackal Avatar asked May 06 '11 19:05

jecjackal


1 Answers

The only file renaming/moving support that is "integrated" (i.e. it updates your project file automatically) is using the active project pane with your file list, rightclick and select "rename", using "../../some/new/dir/name.cpp" to move your files. It will of course not update any #include statements, but will save you the trouble of modifying your .pro file manually. It also respects "git rename" etc...

like image 98
rubenvb Avatar answered Sep 21 '22 03:09

rubenvb