MapZoomPanel Class Reference
Panel for zoom buttons.
More...
#include <mapzoompanel.h>
List of all members.
Signals |
void | zoomInPressed () |
| Signal for zoom in button click.
|
void | zoomOutPressed () |
| Signal for zoom out button click.
|
Public Member Functions |
| MapZoomPanel (QGraphicsItem *parent=0, int x=0, int y=0) |
| Constructor.
|
| ~MapZoomPanel () |
| Destructor.
|
QRectF | boundingRect () const |
| Returns the outer bounds of the panel.
|
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| Paints the panel and its content.
|
Protected Member Functions |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| Event handler for mouse press events.
|
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| Event handler for mouse release events.
|
Private Attributes |
MapButton * | m_zoomInBtn |
| Button for zoom in.
|
MapButton * | m_zoomOutBtn |
| Button for zoom out.
|
qreal | m_x |
| Panel x coordinate.
|
qreal | m_y |
| Panel y coordinate.
|
qreal | m_width |
| Panel width.
|
qreal | m_height |
| Panel height.
|
Detailed Description
Panel for zoom buttons.
- Author:
- Pekka Nissinen - pekka.nissinen (at) ixonos.com
Constructor & Destructor Documentation
MapZoomPanel::MapZoomPanel |
( |
QGraphicsItem * |
parent = 0 , |
|
|
int |
x = 0 , |
|
|
int |
y = 0 | |
|
) |
| | |
Constructor.
- Parameters:
-
| parent | Parent |
| x | Panel x coordinate |
| y | Panel y coordinate |
Member Function Documentation
void MapZoomPanel::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
Event handler for mouse press events.
- Parameters:
-
void MapZoomPanel::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
Event handler for mouse release events.
- Parameters:
-
void MapZoomPanel::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = 0 | |
|
) |
| | |
Paints the panel and its content.
- Parameters:
-
| painter | Painter |
| option | Style options |
| widget | Widget |
The documentation for this class was generated from the following files: