diff -r 7a71a914afdb -r 6d2b32f305f9 vymview.cpp --- a/vymview.cpp Thu May 07 08:48:53 2009 +0000 +++ b/vymview.cpp Wed May 13 08:26:27 2009 +0000 @@ -49,12 +49,6 @@ model, SIGNAL (selectionChanged(const QItemSelection &, const QItemSelection &)), mapEditor,SLOT (updateSelection(const QItemSelection &,const QItemSelection &))); - /* - connect ( - model, SIGNAL (newChildObject(QModelIndex) ), - this,SLOT (updateChilds (QModelIndex) ) ); -*/ - connect ( model, SIGNAL (noteHasChanged(QModelIndex) ), mainWindow, SLOT (updateNoteEditor (QModelIndex) ) ); @@ -91,13 +85,6 @@ return NULL; } - -void VymView::updateChilds (QModelIndex ix) //FIXME-4 not needed? -{ - cout << "VV::updateChilds \n"; - //treeview->setExpanded (ix,true); // This is expensive... -} - void VymView::changeSelection (const QItemSelection &newsel, const QItemSelection &oldsel) { /* @@ -112,6 +99,7 @@ // Notify mainwindow to update satellites like NoteEditor, if needed (model==currenModel...) mainWindow->changeSelection (model,newsel,oldsel); // FIXME-3 maybe connect VymModel <-> MainWindow directly? + showSelection(); } void VymView::expandAll() @@ -128,7 +116,7 @@ ); LinkableMapObj* lmo=model->getSelectedLMO(); - if (lmo) - mapEditor->ensureVisible(lmo->getBBox() ); + if (lmo) + mapEditor->setScrollBarPosTarget (lmo->getBBox() ); }