void PanTool::dragFinish() { MapView* view = mapWidget()->getMapView(); view->finishPanning(cur_pos - click_pos); cur_map_widget->setCursor(Qt::OpenHandCursor); }
void PanTool::dragCanceled() { // finalize current panning MapView* view = mapWidget()->getMapView(); view->finishPanning(view->panOffset()); cur_map_widget->setCursor(Qt::OpenHandCursor); }