Replace CopyFileJob with a two-liner call to QFile::copy

Authored by dfaure on Feb 7 2020, 8:34 PM.

Description

Replace CopyFileJob with a two-liner call to QFile::copy

Summary:
This isn't an async job.

A s/toString()/toLocalFile()/ bugfix along the way.
I can't trigger this code path from the widgets version, though.
Images are saved from pixmap, and files are saved after a download
(they are not in cache).

Reviewers: kfunk, mlaurent

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

Details

Committed
dfaureFeb 8 2020, 9:21 AM
Differential Revision
D27226: Replace CopyFileJob with a two-liner call to QFile::copy
Parents
R865:7d0bb3434172: Add autotests
Branches
Unknown
Tags
Unknown