17#include "moc_qgsmodelviewtooltemporarykeyzoom.cpp" 
   22#include <QApplication> 
   32  if ( !event->isAccepted() )
 
   36  if ( mDeactivateOnMouseRelease )
 
   37    view()->setTool( mPreviousViewTool );
 
 
   42  if ( event->isAutoRepeat() )
 
   49  if ( !( event->modifiers() & Qt::ControlModifier ) )
 
   54      view()->setTool( mPreviousViewTool );
 
   58      mDeactivateOnMouseRelease = 
true;
 
   65    updateCursor( event->modifiers() );
 
   66    if ( event->key() == Qt::Key_Space )
 
   68      mDeactivateOnMouseRelease = 
false;
 
 
   75  if ( event->isAutoRepeat() )
 
   81  if ( event->key() == Qt::Key_Space )
 
   87      view()->setTool( mPreviousViewTool );
 
   91      mDeactivateOnMouseRelease = 
true;
 
   96    updateCursor( event->modifiers() );
 
 
  103  mDeactivateOnMouseRelease = 
false;
 
  104  mPreviousViewTool = 
view()->tool();
 
  106  updateCursor( QApplication::keyboardModifiers() );
 
 
  109void QgsModelViewToolTemporaryKeyZoom::updateCursor( Qt::KeyboardModifiers modifiers )
 
Extends QApplication to provide access to QGIS specific resources such as theme paths,...
 
static QCursor getThemeCursor(Cursor cursor)
Helper to get a theme cursor.
 
A mouse event which is the result of a user interaction with a QgsModelGraphicsView.