From 0666beccd28cdf98158e85b8b5ea873190b07eff Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Tue, 18 May 2021 21:14:51 +0200 Subject: [PATCH] Return size in IppDiscovery ImageProvider --- src/ippdiscovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ippdiscovery.cpp b/src/ippdiscovery.cpp index c51c51c..430fde2 100644 --- a/src/ippdiscovery.cpp +++ b/src/ippdiscovery.cpp @@ -267,7 +267,6 @@ void IppDiscovery::readPendingDatagrams() QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &requestedSize) { //TODO: consider caching images (doesn't appear to be needed currently) - Q_UNUSED(size); Q_UNUSED(requestedSize); qDebug() << "requesting image" << id; @@ -300,6 +299,7 @@ QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &r img = imageReader.read(); } + *size = img.size(); delete nam; return img;