32 #include "../core/corecommon.h"
40 Q_INTERFACES(QGraphicsItem)
42 enum { Type = UserType + TYPE_HOMEITEM };
44 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
46 QRectF boundingRect()
const;
48 bool ShowSafeArea()
const{
return showsafearea;}
49 void SetShowSafeArea(
bool const& value){showsafearea=value;}
50 void SetToggleRefresh(
bool const& value){toggleRefresh=value;}
51 int SafeArea()
const{
return safearea;}
52 void SetSafeArea(
int const& value){safearea=value;}
54 virtual void SetCoord(
internals::PointLatLng const& value){coord=value; emit absolutePositionChanged(value,Altitude());}
55 virtual void SetAltitude(
float const& value){altitude=value; emit absolutePositionChanged(Coord(),Altitude());}
56 void RefreshToolTip();
68 void mouseMoveEvent ( QGraphicsSceneMouseEvent * event );
69 void mousePressEvent ( QGraphicsSceneMouseEvent * event );
70 void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
71 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
74 void setOpacitySlot(qreal opacity);
76 void homedoubleclick(
HomeItem* homeLocation);
A graphicsItem representing a MapPointItem.
The main graphicsItem used on the widget, contains the map and map logic.
A QGraphicsItem representing a MapPointItem.