I think I found right place. I added excludeFolderType QSet to FlatModel. Now FlatModel is able to exclude (not hide like filter) FolderNode with it content from Model Tree. With this feature it's possible to Hide Sources subtree for example and see only Headers. It's useful on beeg displays, to make two project trees - one for headers - another for sources. Summary: it's possible now to hide some types of files (Headers, Sources, Resources, Others, etc) from Project tree.
Now I'm preparing my merge-request to gitorious (I newbie to git, that's why i made some mistake and now thinking how to fix it). Hope to see this feature in next releases. > >> On Mon, Dec 28, 2009 at 9:52 PM, Rudenko Eugene >> <[email protected]> wrote: >>> Ok, I almost made all things, only one problem. >>> My solution is: >>> in Qt4PriFileNode::update I checked some bool property >>> m_filterMergeSources. And regarding of it form different fileTypes, >>> fileTypeNames and fileTypeIcons variables. >>> The main problem is place where to place this property. This place >>> might be one for all opened projects (shared), and it's might be >>> accessible from ProjectTree and Qt4PriFileNode. >>> >>> I think this place may be in Model. Model is accessible from >>> ProjectTree, but I'm unable to find how to acces to it from >>> Qt4PriFileNode. Maybe solution is to past some variable to update() >>> method? >> >> Could you provide a patch ? or submit pull-request ? >> >> Regards >> Rajeev J Sebastian >> >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt-creator > <tree_patch.patch> _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
