Пример #1
0
/**
 * 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();
}
Пример #2
0
/**
 * 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();
}