17#include "moc_qgsmodelviewtooltemporarykeypan.cpp"
30 view()->horizontalScrollBar()->setValue(
view()->horizontalScrollBar()->value() - ( event->x() - mLastMousePos.x() ) );
31 view()->verticalScrollBar()->setValue(
view()->verticalScrollBar()->value() - ( event->y() - mLastMousePos.y() ) );
32 mLastMousePos =
event->pos();
37 if ( event->key() == Qt::Key_Space && !event->isAutoRepeat() )
39 view()->setTool( mPreviousViewTool );
45 mLastMousePos =
view()->mapFromGlobal( QCursor::pos() );
46 mPreviousViewTool =
view()->tool();
A QgsModelViewMouseEvent is the result of a user interaction with the mouse on a QgsModelGraphicsView...