summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-02-25 17:03:59 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-02-25 19:53:27 +0100
commit462c2745a5168a5b57381d05779b5d16aebe018e (patch)
tree183b9d05e2bcbba603bddb7972caf396652c5007
parenta434880e624aa56c14914af1741349eff255aea2 (diff)
Add replacement message to deprecation of QImage::alphaChannel()
Change-Id: I1d8afecc6da5df6fef72ecc59d14ac455c43d9a6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/gui/image/qimage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index 7b2abfaf85..56824e5ee7 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -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