QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
29 view()->horizontalScrollBar()->setValue(
view()->horizontalScrollBar()->value() - ( event->x() - mLastMousePos.x() ) );
30 view()->verticalScrollBar()->setValue(
view()->verticalScrollBar()->value() - ( event->y() - mLastMousePos.y() ) );
31 mLastMousePos =
event->pos();
37 if ( event->button() == Qt::MidButton )
45 mLastMousePos =
view()->mapFromGlobal( QCursor::pos() );
void setTool(QgsLayoutViewTool *tool)
Sets the tool currently being used in the view.
void viewChanged()
Updates associated rulers and other widgets after view extent or zoom has changed.