1.1 --- a/mapeditor.cpp Thu Jan 22 15:40:08 2009 +0000
1.2 +++ b/mapeditor.cpp Fri Jan 30 09:14:12 2009 +0000
1.3 @@ -537,19 +537,22 @@
1.4
1.5 if (lmo)
1.6 {
1.7 + /*
1.8 cout << "ME::mouse pressed\n";
1.9 cout << " lmo="<<lmo<<endl;
1.10 cout << " h="<<((BranchObj*)lmo)->getHeading().toStdString()<<endl;
1.11 + */
1.12 // Select the clicked object
1.13
1.14 // FIXME VM better let "find" return an index instead of lmo...
1.15 // Get index of clicked LMO
1.16 TreeItem *ti=lmo->getTreeItem();
1.17 + /*
1.18 cout << " lmo="<<lmo<<" lmo(ti)="<<ti->getLMO()<<endl;
1.19 cout << " ti ("<<ti->row()<<","<<ti->column()<<") = "<<ti<<endl;
1.20 + */
1.21 //QModelIndex ix=model->index( ti->row(), ti->column(), model->index (0,0,QModelIndex()) );
1.22 - QModelIndex ix=model->index(ti);
1.23 - model->getSelectionModel()->select (ix,QItemSelectionModel::ClearAndSelect );
1.24 + model->select (ti);
1.25
1.26 // Left Button Move Branches
1.27 if (e->button() == Qt::LeftButton )