Kirigami.Icon: Fix loading bigger images when source is a URL

Authored by apol on Aug 5 2019, 4:30 PM.

Description

Kirigami.Icon: Fix loading bigger images when source is a URL

Summary:
Port to using the QImage::load() that takes a QIODevice and only do it when the
execution is finished, instead of upon readyRead(). This makes sure that we are
only processing the icon when is fully downloaded.

BUG: 407409
BUG: 400312

Test Plan: Reproduced the bug and fixed it

Reviewers: Frameworks, Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: broulik, plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D22952

Details

Committed
apolAug 6 2019, 1:42 PM
Reviewer
Kirigami
Differential Revision
D22952: Kirigami.Icon: Fix loading bigger images when source is a URL
Parents
R169:c17c048ec2f7: Add icon used by Kirigami.AboutPage
Branches
Unknown
Tags
Unknown