17#include "moc_qgsmodelviewtooltemporarymousepan.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->button() == Qt::MiddleButton )
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...