21#include <QApplication>
24#include "moc_qgslayoutviewtooltemporarykeyzoom.cpp"
33 if ( !event->isAccepted() )
37 if ( mDeactivateOnMouseRelease )
43 if ( event->isAutoRepeat() )
50 if ( !( event->modifiers() & Qt::ControlModifier ) )
59 mDeactivateOnMouseRelease =
true;
66 updateCursor( event->modifiers() );
67 if ( event->key() == Qt::Key_Space )
69 mDeactivateOnMouseRelease =
false;
76 if ( event->isAutoRepeat() )
82 if ( event->key() == Qt::Key_Space )
92 mDeactivateOnMouseRelease =
true;
97 updateCursor( event->modifiers() );
104 mDeactivateOnMouseRelease =
false;
107 updateCursor( QApplication::keyboardModifiers() );
110void QgsLayoutViewToolTemporaryKeyZoom::updateCursor( Qt::KeyboardModifiers modifiers )
static QCursor getThemeCursor(Cursor cursor)
Helper to get a theme cursor.
A mouse event which is the result of a user interaction with a QgsLayoutView.
A graphical widget to display and interact with QgsLayouts.
void setTool(QgsLayoutViewTool *tool)
Sets the tool currently being used in the view.