27 #include "../canvas/MapDisplay.h"
31 #include <QtGui/QPixmap>
32 #include <QtGui/QWheelEvent>
35 :
Zoom(display, zoomFactor, In, parent)
45 if(watched != m_display)
52 QWheelEvent* wheelEvent =
static_cast<QWheelEvent*
>(e);
53 wheelEvent->delta() > 0 ? setZoomType(In) : setZoomType(Out);
55 QPixmap* draft = m_display->getDraftPixmap();
56 draft->fill(Qt::transparent);
This class implements a concrete tool to geographic zoom operation using the mouse wheel...
ZoomWheel(MapDisplay *display, const double &zoomFactor=2.0, QObject *parent=0)
It constructs a zoom wheel tool associated with the given map display.
A widget to control the display of a set of layers.
This is a utility class to geographic zoom operation.
bool eventFilter(QObject *watched, QEvent *e)
virtual bool eventFilter(QObject *watched, QEvent *e)