On Jun 12, 2009, at 3:41 PM, ext Andres Manz wrote: > Hello,
Hi! > I'd like to implement the functionality to display subdirectories in > the projects view. There's already an issue: > > http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=247678 > > So I looked at the whole thing. There are just three questions: > > 1. Should I add a filter option to the "Projects" view (like "show sub > directories") or should I add a new entry to the view list? I'd just make it show the directories whenever "simplify tree" is not selected. > 2. ProjectTreeWidget uses a FlatModel for its TreeView. FlatModel just > ignores folders. Should I implement a new model or is there any other > model I could use? Just can't find a nice way. It's not quite that FlatModel ignores folders. FlatModel has a property projectFilterEnabled that will hide project nodes that don't have a "target" (ProjectNode::hasTargets, filtered out in FlatModel::filter(Node*) ). But the Qt project nodes don't create any subfolder nodes for subfolders specified in pro/pri files. So I suppose that the way to go would be to * make the Qt4Pro/PriFileNode classes add the right folder nodes (probably in something like Qt4PriFileNode::update) * either transform the projectFilter into a filter that removes both projects without targets and the folders that aren't projects, or add an additional filter property that does the latter > 3. Does anybody (except me) still want this functionality? Most definitely yes! Are you aware of this thread: http://lists.trolltech.com/pipermail/qt-creator/2009-March/002399.html ? I did some short research leading to my suggestions above, but didn't come around seriously start implementing stuff yet :) So if you are interested in this little project, I'd be happy to have a chat with you on #qt-creator. -- Eike Ziller Software Engineer Nokia, Qt Software Phone +49 (0)30 6392 3255 Fax +49 (0)30 6392 3256 E-mail [email protected] _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
