Replace deprecated QImage::mirror(ed) with flip(ped)

Follow up on change in qtbase:577946c1f05aaaa2a3f9682001aeb4144386b26b.

Task-number: QTBUG-129575
Change-Id: I33b49a37276d18899c41d9261ae42ac74ad54df1
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Volker Hilsheimer 2024-12-02 10:46:37 +01:00
parent 6f5732b0eb
commit b89634bc2d
1 changed files with 5 additions and 5 deletions

View File

@ -255,15 +255,15 @@ void VolumetricModifier::testSubtextureSetting()
// Do some visible swaps on volume 3
QImage slice = m_volumeItem3->renderSlice(Qt::XAxis, 144);
slice = slice.mirrored();
slice.flip();
m_volumeItem3->setSubTextureData(Qt::XAxis, 144, slice);
slice = m_volumeItem3->renderSlice(Qt::YAxis, 80);
slice = slice.mirrored();
slice.flip();
m_volumeItem3->setSubTextureData(Qt::YAxis, 80, slice);
slice = m_volumeItem3->renderSlice(Qt::ZAxis, 190);
slice = slice.mirrored(true, false);
slice.flip(Qt::Horizontal);
m_volumeItem3->setSubTextureData(Qt::ZAxis, 190, slice);
}
@ -404,7 +404,7 @@ void VolumetricModifier::createVolume()
uchar *p = data;
// Change one picture using subtexture replacement
QImage flipped = logo.mirrored();
QImage flipped = logo.flipped();
m_volumeItem->setSubTextureData(Qt::ZAxis, 100, flipped);
// Clean up the two extra pixels
@ -536,7 +536,7 @@ void VolumetricModifier::createAnotherVolume()
zRange * 2.0f));
// Change one picture using subtexture replacement
QImage flipped = logo.mirrored();
QImage flipped = logo.flipped();
m_volumeItem2->setSubTextureData(Qt::ZAxis, 100, flipped);
//m_volumeItem2->setAlphaMultiplier(0.2f);
m_volumeItem2->setPreserveOpacity(false);