diff -r 94ed4372ef08 -r 2d4cc445a86a vymview.cpp --- a/vymview.cpp Thu Mar 19 11:45:28 2009 +0000 +++ b/vymview.cpp Mon Mar 23 09:06:51 2009 +0000 @@ -39,6 +39,9 @@ connect ( model, SIGNAL (selectionChanged(const QItemSelection &, const QItemSelection &)), me,SLOT (updateSelection(const QItemSelection &,const QItemSelection &))); + connect ( + model, SIGNAL (newChildObject(QModelIndex) ), + this,SLOT (updateChilds (QModelIndex) ) ); //me->viewport()->setFocus(); //FIXME needed? me->setAntiAlias (mainWindow->isAliased()); @@ -64,13 +67,16 @@ } +void VymView::updateChilds (QModelIndex ix) +{ + treeview->setExpanded (ix,true); +} + void VymView::changeSelection (const QItemSelection &, const QItemSelection &) { cout << "VymView::changeSelection (newsel,delsel)\n"; //treeview->expandAll(); //FIXME only for testing - //((VymModel*)treeview->model())->select (); - // Show URL and link in statusbar QString status; QString s=model->getURL(); @@ -79,12 +85,9 @@ if (!s.isEmpty() ) status+="Link: "+s; if (!status.isEmpty() ) mainWindow->statusMessage (status); -/* FIXME, was so far in BranchObj - // Update Toolbar + // Update Toolbar // FIXME, was so far in BranchObj //updateFlagsToolbar(); -*/ - // Update actions mainWindow->updateActions(); }