Add replacement message to deprecation of QImage::alphaChannel()

Change-Id: I1d8afecc6da5df6fef72ecc59d14ac455c43d9a6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Allan Sandfeld Jensen 2020-02-25 17:03:59 +01:00
parent a434880e62
commit 462c2745a5
1 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,8 @@ public:
bool hasAlphaChannel() const;
void setAlphaChannel(const QImage &alphaChannel);
#if QT_DEPRECATED_SINCE(5, 15)
QT_DEPRECATED QImage alphaChannel() const;
QT_DEPRECATED_X("Use convertToFormat(QImage::Format_Alpha8)")
QImage alphaChannel() const;
#endif
QImage createAlphaMask(Qt::ImageConversionFlags flags = Qt::AutoColor) const;
#ifndef QT_NO_IMAGE_HEURISTIC_MASK