Make imageprovider ascynchronous

This commit is contained in:
Anton Thomasson 2021-02-13 14:58:08 +01:00
parent 061a66caae
commit 1ef3d590fc

View file

@ -46,7 +46,7 @@ QStringList get_addr(Bytestream& bts)
return addr; return addr;
} }
IppDiscovery::IppDiscovery() : QStringListModel(), QQuickImageProvider(QQuickImageProvider::Image) IppDiscovery::IppDiscovery() : QStringListModel(), QQuickImageProvider(QQuickImageProvider::Image, ForceAsynchronousImageLoading)
{ {
socket = new QUdpSocket(this); socket = new QUdpSocket(this);
connect(socket, SIGNAL(readyRead()), connect(socket, SIGNAL(readyRead()),