Silence deprecation warning about QImage::alphaChannel() in qpixmap.h
Amends aa542be4e005b1feedc2e17fd6ca2387bf2fea1b. Change-Id: Id1a256a101cc16fa36d1254d3523cf0732c24045 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
7b0f341872
commit
bfbf8ca453
@ -227,7 +227,10 @@ inline bool QPixmap::loadFromData(const QByteArray &buf, const char *format,
|
|||||||
#if QT_DEPRECATED_SINCE(5, 0)
|
#if QT_DEPRECATED_SINCE(5, 0)
|
||||||
inline QPixmap QPixmap::alphaChannel() const
|
inline QPixmap QPixmap::alphaChannel() const
|
||||||
{
|
{
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_DEPRECATED
|
||||||
return QPixmap::fromImage(toImage().alphaChannel());
|
return QPixmap::fromImage(toImage().alphaChannel());
|
||||||
|
QT_WARNING_POP
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void QPixmap::setAlphaChannel(const QPixmap &p)
|
inline void QPixmap::setAlphaChannel(const QPixmap &p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user