Use QUrl::fromLocalFile to convert filenames
ClosedPublic

Authored by abrahams on Sep 15 2015, 6:03 AM.

Details

Summary

Allows importing/exporting local files in KisImportExportManager.

Importing/exporting .png, .jpg and so on were broken on my machine following the port to QUrl, because the to/from string functions became less forgiving. For example QUrl("/home/miabrahams/test.jpg") is a no-go, it must be of the form "file:///home/miabrahams/test.jpg". Similarly QFile(QUrl.toString()) will fail.

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abrahams updated this revision to Diff 875.Sep 15 2015, 6:03 AM
abrahams retitled this revision from to Use QUrl::fromLocalFile to convert filenames.
abrahams updated this object.
abrahams edited the test plan for this revision. (Show Details)
abrahams added a reviewer: rempt.
abrahams updated this object.Sep 15 2015, 6:09 AM
rempt accepted this revision.Sep 15 2015, 6:58 AM
rempt edited edge metadata.
This revision is now accepted and ready to land.Sep 15 2015, 6:58 AM
This revision was automatically updated to reflect the committed changes.