27 #include "../canvas/MapDisplay.h"
31 #include <QtGui/QKeyEvent>
34 :
Zoom(display, zoomFactor, In, parent)
36 m_display->setFocusPolicy(Qt::ClickFocus);
45 if(watched != m_display)
50 case QEvent::KeyPress:
52 QKeyEvent* keyEvent =
static_cast<QKeyEvent*
>(e);
54 int key = keyEvent->key();
bool eventFilter(QObject *watched, QEvent *e)
This class implements a concrete tool to geographic zoom operation using the keyboard.
ZoomKeyboard(MapDisplay *display, const double &zoomFactor=2.0, QObject *parent=0)
It constructs a zoom keyboard tool associated with the given map display.
MapDisplay * m_display
The map display associated with the tool.
A widget to control the display of a set of layers.
This is a utility class to geographic zoom operation.
virtual bool eventFilter(QObject *watched, QEvent *e)
~ZoomKeyboard()
Destructor.