22 #include <QMouseEvent>
38 QPixmap myZoomQPixmap = QPixmap((
const char ** )( zoomOut ?
zoom_out :
zoom_in ) );
39 mCursor = QCursor( myZoomQPixmap, 7, 7 );
50 if ( !( e->buttons() & Qt::LeftButton ) )
58 QColor color( Qt::blue );
74 if ( e->button() != Qt::LeftButton )
83 if ( e->button() != Qt::LeftButton )
107 const QSize& zoomRectSize =
mZoomRect.size();
109 const QSize& canvasSize = mapSettings.
outputSize();
110 double sfx = ( double )zoomRectSize.width() / canvasSize.width();
111 double sfy = ( double )zoomRectSize.height() / canvasSize.height();
112 double sf = qMax( sfx, sfy );