7 : 
QMapPainter(parent, name, f), dumper(
"navigator", 1){
 
   27         int my=height()-p.y();
 
   28         if (!(e->state()&Qt::ShiftButton) && e->button()==Qt::LeftButton) {
 
   36         if (e->state()&Qt::ControlButton && e->button()==Qt::LeftButton){
 
   42         if (e->state()&Qt::ControlButton && e->button()==Qt::RightButton){
 
   53         if (e->key()==Qt::Key_Delete){
 
   58         if (e->key()==Qt::Key_S){
 
   62         if (e->key()==Qt::Key_W){
 
   66         if (e->key()==Qt::Key_G){
 
   70         if (e->key()==Qt::Key_T){
 
   74         if (e->key()==Qt::Key_R){
 
   78         if (e->key()==Qt::Key_C){
 
   83         if (e->key()==Qt::Key_Q){
 
   88         if (e->key()==Qt::Key_D){
 
   97         QPainter painter(&pixmap);
 
   99         painter.setPen(Qt::red);
 
  105                 int y=height()-it->y;
 
  107                         painter.drawLine(oldx, oldy, x,y);
 
  114                 painter.setPen(Qt::black);
 
  118                 painter.drawLine(rx, ry, 
 
  120                 painter.drawEllipse(rx-robotSize, ry-robotSize, 2*robotSize, 2*robotSize);
 
  125         bitBlt(
this,0,0,&pixmap,0,0,pixmap.width(),pixmap.height(),CopyROP);