Remove QAlphaPaintEngine::drawImage()
It was not a proper reimplementation of QPaintEngine::drawImage(), which takes 4 arguments, not 3 as declared in QAlphaPaintEngine. Remove the code, since it is not being called. Change-Id: Ia125a9c7e8a2e05ec2ca11b859c01ccbf4d55af5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
2395a3c897
commit
14d9a2b06c
@ -223,25 +223,6 @@ void QAlphaPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRe
|
||||
}
|
||||
}
|
||||
|
||||
void QAlphaPaintEngine::drawImage(const QRectF &r, const QImage &image, const QRectF &sr)
|
||||
{
|
||||
Q_D(QAlphaPaintEngine);
|
||||
|
||||
QRectF tr = d->m_transform.mapRect(r);
|
||||
if (d->m_pass == 0) {
|
||||
d->m_continueCall = false;
|
||||
if (image.hasAlphaChannel() || d->m_alphaOpacity || d->m_complexTransform) {
|
||||
d->addAlphaRect(tr);
|
||||
}
|
||||
|
||||
if (d->m_picengine)
|
||||
d->m_picengine->drawImage(r, image, sr);
|
||||
|
||||
} else {
|
||||
d->m_continueCall = !d->fullyContained(tr);
|
||||
}
|
||||
}
|
||||
|
||||
void QAlphaPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)
|
||||
{
|
||||
Q_D(QAlphaPaintEngine);
|
||||
|
@ -76,7 +76,6 @@ public:
|
||||
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode);
|
||||
|
||||
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr);
|
||||
virtual void drawImage(const QRectF &r, const QImage &image, const QRectF &sr);
|
||||
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
|
||||
virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user