Return size in IppDiscovery ImageProvider

This commit is contained in:
Anton Thomasson 2021-05-18 21:14:51 +02:00
parent 8aef95b143
commit 0666beccd2

View file

@ -267,7 +267,6 @@ void IppDiscovery::readPendingDatagrams()
QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &requestedSize) QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &requestedSize)
{ //TODO: consider caching images (doesn't appear to be needed currently) { //TODO: consider caching images (doesn't appear to be needed currently)
Q_UNUSED(size);
Q_UNUSED(requestedSize); Q_UNUSED(requestedSize);
qDebug() << "requesting image" << id; qDebug() << "requesting image" << id;
@ -300,6 +299,7 @@ QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &r
img = imageReader.read(); img = imageReader.read();
} }
*size = img.size();
delete nam; delete nam;
return img; return img;