/** * When an image layer has changed, it may change size and it may look * differently. */ void MapScene::imageLayerChanged(ImageLayer *imageLayer) { const int index = mMapDocument->map()->layers().indexOf(imageLayer); ImageLayerItem *item = static_cast<ImageLayerItem*>(mLayerItems.at(index)); item->syncWithImageLayer(); item->update(); }
/** * When an image layer has changed, it may change size and it may look * differently. */ void MapItem::imageLayerChanged(ImageLayer *imageLayer) { ImageLayerItem *item = static_cast<ImageLayerItem*>(mLayerItems.value(imageLayer)); item->syncWithImageLayer(); item->update(); }