vymview.cpp
changeset 823 0bba81dde1bc
parent 822 c2ce9944148c
child 825 1ad892c1a709
     1.1 --- a/vymview.cpp	Wed Feb 10 13:48:42 2010 +0000
     1.2 +++ b/vymview.cpp	Fri Feb 19 13:47:03 2010 +0000
     1.3 @@ -72,7 +72,7 @@
     1.4  			mapEditor,SLOT (updateSelection(const QItemSelection &,const QItemSelection &)));
     1.5  			*/
     1.6  
     1.7 -		// FIXME-2 testing, if that reenables updating selbox during animation
     1.8 +		// Needed to update selbox during animation
     1.9  		connect (
    1.10  			model, SIGNAL (selectionChanged(const QItemSelection &, const QItemSelection &)), 
    1.11  			mapEditor,SLOT (updateSelection(const QItemSelection &,const QItemSelection &)));
    1.12 @@ -184,7 +184,7 @@
    1.13  	//cout << "VV::changeProxySelection   newsel.count="<<newsel.indexes().count()<<endl;
    1.14  	if (!newsel.indexes().isEmpty())
    1.15  	{
    1.16 -	/* FIXME-2 need to set current, too
    1.17 +	/* FIXME-3 need to set current, too
    1.18  	*/
    1.19  		proxySelModel->setCurrentIndex (
    1.20  			newsel.indexes().first(),
    1.21 @@ -319,3 +319,12 @@
    1.22  	if (mapEditor) mapEditor->setFocus();
    1.23  }
    1.24  
    1.25 +void VymView::toggleTreeEditor()
    1.26 +{
    1.27 +	if (treeEditor->isVisible() )
    1.28 +		treeEditor->hide();
    1.29 +	else
    1.30 +		treeEditor->show();
    1.31 +}
    1.32 +
    1.33 +