treeeditor.cpp
changeset 801 16a8ef1d82b2
parent 800 959bd133cd1a
child 802 f076fdec767d
     1.1 --- a/treeeditor.cpp	Thu Oct 01 13:23:20 2009 +0000
     1.2 +++ b/treeeditor.cpp	Fri Oct 02 09:40:57 2009 +0000
     1.3 @@ -17,15 +17,14 @@
     1.4  	model=m;
     1.5  
     1.6  /*
     1.7 +*/
     1.8  //	MySortFilterProxyModel *proxyModel = new MySortFilterProxyModel(this);	// FIXME-1 trying to use proxy...
     1.9  	proxyModel = new QSortFilterProxyModel (this);
    1.10  
    1.11 +//	proxyModel->setDynamicSortFilter (false);
    1.12 +	setModel(proxyModel);
    1.13  	proxyModel->setSourceModel(model);
    1.14 -
    1.15 -	proxyModel->setDynamicSortFilter (false);
    1.16 -	setModel(proxyModel);
    1.17 -*/
    1.18 -	setModel(model);
    1.19 +//	setModel(model);
    1.20  
    1.21  	QAction *a;
    1.22  	// Shortcuts for navigating with cursor:
    1.23 @@ -49,6 +48,11 @@
    1.24  	//cout <<"Destructor TreeEditor for "<<model->getMapName().toStdString()<<endl;
    1.25  }
    1.26  
    1.27 +QSortFilterProxyModel* TreeEditor::getProxyModel()
    1.28 +{
    1.29 +	return proxyModel;
    1.30 +}
    1.31 +
    1.32  void TreeEditor::setSortFilter(QString s)
    1.33  {
    1.34  	cout << "TE::setting sortFilter to "<<s.toStdString()<<endl;