diff -r 338ebdc9b947 -r 14f2b1b15242 mapeditor.cpp --- a/mapeditor.cpp Fri Oct 02 14:31:03 2009 +0000 +++ b/mapeditor.cpp Fri Nov 13 08:32:03 2009 +0000 @@ -1,4 +1,4 @@ -#include "mapeditor.h" + #include "mapeditor.h" #include #include @@ -196,7 +196,6 @@ if (lmo) { QRectF r=lmo->getBBox(); - if (debug) cout << "ME::scrollTo "<getHeadingStd()<<" bbox="<setText (bi->getHeading()); QPoint p = mapTo (this,bo->getAbsPos().toPoint() ); lineEdit->setGeometry(p.x(),p.y(),230,25); - lineEdit->selectAll(); + //lineEdit->selectAll(); + //lineEdit->setCursorPosition (1); lineEdit->show(); lineEdit->setFocus(); lineEdit->grabKeyboard(); @@ -1002,9 +1002,11 @@ void MapEditor::mousePressEvent(QMouseEvent* e) { +cout << "ME::mousePressed\n"; // Ignore right clicks, these will go to context menus if (e->button() == Qt::RightButton ) { + cout << " ME::ignoring right mouse event...\n"; e->ignore(); return; } @@ -1012,6 +1014,7 @@ //Ignore clicks while editing heading if (model->isSelectionBlocked() ) { + cout << " ME::ignoring other mouse event...\n"; e->ignore(); return; } @@ -1707,7 +1710,6 @@ selboxList.append (sb); } - // Reposition rectangles QRectF bbox; QModelIndex index; @@ -1726,7 +1728,7 @@ i++; } - scene()->update(); + scene()->update(); } void MapEditor::updateData (const QModelIndex &sel)