summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore_p.cpp
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-04-20 13:50:17 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-04-21 06:18:30 +0000
commita24b9567929f5f38cefea77c6f2d05d7a54d7986 (patch)
tree997982578c46c4432a7be36273ea048b96f3b105 /src/libs/installer/packagemanagercore_p.cpp
parentf983a4f2f447b27e233211814884b8d0d6bfc126 (diff)
AspectRatioLabel: prevent setting non-scaled pixmaps
The function signature for setting a pixmap for the label changed from 'setPixmap(const QPixmap &pixmap)' to 'setPixmapAndUrl(const QPixmap &pixmap, const QString &url)' when we enabled support for click URLs. Redefine (again) the base class QLabel::setPixmap() slot to make it harder for callers to set non-scaled pixmaps accidentally. This is still a bit bad however as it is possible to get different client-visible results by calling the method with a base class pointer. Task-number: QTIFW-2612 Change-Id: Ic79b3d71ffd5baf2108768ad3b867ddbcb33833b Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.cpp')
0 files changed, 0 insertions, 0 deletions