20#include <QApplication> 
   30  if ( !event->isAccepted() )
 
   34  if ( mDeactivateOnMouseRelease )
 
   40  if ( event->isAutoRepeat() )
 
   47  if ( !( event->modifiers() & Qt::ControlModifier ) )
 
   56      mDeactivateOnMouseRelease = 
true;
 
   63    updateCursor( event->modifiers() );
 
   64    if ( event->key() == Qt::Key_Space )
 
   66      mDeactivateOnMouseRelease = 
false;
 
   73  if ( event->isAutoRepeat() )
 
   79  if ( event->key() == Qt::Key_Space )
 
   89      mDeactivateOnMouseRelease = 
true;
 
   94    updateCursor( event->modifiers() );
 
  101  mDeactivateOnMouseRelease = 
false;
 
  104  updateCursor( QApplication::keyboardModifiers() );
 
  107void QgsLayoutViewToolTemporaryKeyZoom::updateCursor( Qt::KeyboardModifiers modifiers )
 
  109  view()->viewport()->setCursor( ( modifiers & Qt::AltModifier ) ?
 
static QCursor getThemeCursor(Cursor cursor)
Helper to get a theme cursor.
 
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView.
 
A graphical widget to display and interact with QgsLayouts.
 
void setTool(QgsLayoutViewTool *tool)
Sets the tool currently being used in the view.