Revamp removeImage() signature


Change the signature to take a QCImage instead of an int imageId.
For now, the implementation just uses image.id(), so nothing changes
apart from a more future proof API.

The behavior is incorrect, because if the QCImage comes from an
addImage() overload that does not take a QImage, then that QCImage
was never registered with m_dataCache.

That problem is solved in future patches. This one here just corrects
the API.

Task-number: QTBUG-143843
Pick-to: 6.11
Change-Id: I170a29956f7470da4171751e7f652461b36018b2
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit39d822b314d8ba13dd0a73b48d268671c10444c7
parent0439364cac027eca9390fed7773d5c5c4dc6d00c
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeWed, 4 Feb 2026 11:18:34 +0100