9 class MapItem
: public QObject
, public PlaneItem
14 MapItem(MapAction
*action
, Map
*map
, GraphicsItem
*parent
= 0);
16 QPainterPath
shape() const {return _painterPath
;}
17 QRectF
boundingRect() const {return _painterPath
.boundingRect();}
18 void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
,
21 RectC
bounds() const {return _bounds
;}
22 void setMap(Map
*map
);
24 void setColor(const QColor
&color
);
25 void setOpacity(qreal opacity
);
26 void setWidth(qreal width
);
27 void setPenStyle(Qt::PenStyle style
);
28 void setDigitalZoom(int zoom
);
30 ToolTip
info(bool extended
) const;
36 void hoverEnterEvent(QGraphicsSceneHoverEvent
*event
);
37 void hoverLeaveEvent(QGraphicsSceneHoverEvent
*event
);
38 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent
*event
);
41 void updatePainterPath(Map
*map
);
54 QPainterPath _painterPath
;