17#include "moc_qgslayoutviewtooltemporarymousepan.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();
 
 
   38  if ( event->button() == Qt::MiddleButton )
 
 
   46  mLastMousePos = 
view()->mapFromGlobal( QCursor::pos() );
 
 
A mouse event which is the result of a user interaction with a QgsLayoutView.
 
A graphical widget to display and interact with QgsLayouts.
 
void viewChanged()
Updates associated rulers and other widgets after view extent or zoom has changed.
 
void setTool(QgsLayoutViewTool *tool)
Sets the tool currently being used in the view.