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