Hello. A couple of days ago, I started to quake a little Qt-creator. To understand in general the insides had to spend the evening. Another evening went to understand how to implement this feature. Well, in the end, the implementation took about an hour.
The meaning of this feature is that now you can connect source trees and header files using the appropriate switch. It was inconvenient for me to have two trees — one for the header files — another for the source files, and this made me realize this little change.
I changed the class FolderNode, now it has the property FileType contentType (). This property determines the content type of the folder (source, header files, resources, etc.). I also added the excludeFolderType property to FlatMode. This property is used to exclude all folders that have content of the appropriate type from the model with all heirs.
Why do I need it. 1. I wanted to understand how Qt-creator works. 2. Improve your skills (learn from someone else's code). 3. Help make Qt-creator better.
Then I plan to implement a couple more small improvements: 1. Make the file system panel tree. 2. The status of the file in the project in the version control system.
PS: This was my first experience with git and gitorious. If it is not clear to anyone how to “contribute” your code - please contact, I will tell you everything with pleasure. UPD: as always the English version can be found on my blog