1.1 --- a/mapeditor.cpp Fri Oct 02 14:31:03 2009 +0000
1.2 +++ b/mapeditor.cpp Fri Nov 13 08:32:03 2009 +0000
1.3 @@ -1,4 +1,4 @@
1.4 -#include "mapeditor.h"
1.5 + #include "mapeditor.h"
1.6
1.7 #include <iostream>
1.8 #include <cstdlib>
1.9 @@ -196,7 +196,6 @@
1.10 if (lmo)
1.11 {
1.12 QRectF r=lmo->getBBox();
1.13 - if (debug) cout << "ME::scrollTo "<<ti->getHeadingStd()<<" bbox="<<r<<endl;
1.14 setScrollBarPosTarget (r);
1.15 }
1.16 }
1.17 @@ -909,7 +908,8 @@
1.18 lineEdit->setText (bi->getHeading());
1.19 QPoint p = mapTo (this,bo->getAbsPos().toPoint() );
1.20 lineEdit->setGeometry(p.x(),p.y(),230,25);
1.21 - lineEdit->selectAll();
1.22 + //lineEdit->selectAll();
1.23 + //lineEdit->setCursorPosition (1);
1.24 lineEdit->show();
1.25 lineEdit->setFocus();
1.26 lineEdit->grabKeyboard();
1.27 @@ -1002,9 +1002,11 @@
1.28
1.29 void MapEditor::mousePressEvent(QMouseEvent* e)
1.30 {
1.31 +cout << "ME::mousePressed\n";
1.32 // Ignore right clicks, these will go to context menus
1.33 if (e->button() == Qt::RightButton )
1.34 {
1.35 + cout << " ME::ignoring right mouse event...\n";
1.36 e->ignore();
1.37 return;
1.38 }
1.39 @@ -1012,6 +1014,7 @@
1.40 //Ignore clicks while editing heading
1.41 if (model->isSelectionBlocked() )
1.42 {
1.43 + cout << " ME::ignoring other mouse event...\n";
1.44 e->ignore();
1.45 return;
1.46 }
1.47 @@ -1707,7 +1710,6 @@
1.48 selboxList.append (sb);
1.49 }
1.50
1.51 -
1.52 // Reposition rectangles
1.53 QRectF bbox;
1.54 QModelIndex index;
1.55 @@ -1726,7 +1728,7 @@
1.56 i++;
1.57 }
1.58
1.59 - scene()->update();
1.60 + scene()->update();
1.61 }
1.62
1.63 void MapEditor::updateData (const QModelIndex &sel)