QTM_BEGIN_NAMESPACE QGeoTiledMapCustomObjectInfo::QGeoTiledMapCustomObjectInfo(QGeoTiledMapData *mapData, QGeoMapObject *mapObject) : QGeoTiledMapObjectInfo(mapData, mapObject) { custom = static_cast<QGeoMapCustomObject*>(mapObject); connect(custom, SIGNAL(triggerUpdate()), this, SLOT(updateTriggered())); connect(custom, SIGNAL(graphicsItemChanged(QGraphicsItem*)), this, SLOT(graphicsItemChanged(QGraphicsItem*))); connect(custom, SIGNAL(offsetChanged(QPoint)), this, SLOT(offsetChanged(QPoint))); graphicsItem = 0; graphicsItemChanged(this->custom->graphicsItem()); offsetChanged(this->custom->offset()); }
void QGeoMapCustomObject::setGraphicsItem(QGraphicsItem *graphicsItem) { if (d_ptr->graphicsItem == graphicsItem) return; d_ptr->graphicsItem = graphicsItem; emit graphicsItemChanged(graphicsItem); }