Commit graph

10 commits

Author SHA1 Message Date
Ivailo Monev
5449379ca6 gwenview: simplify the save job
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-15 04:26:18 +03:00
Ivailo Monev
5d77471e5b gwenview: do not thread document jobs
threading it does not help when an image requires gigabytes of memory to
store to begin with (such as when the image is resized to 30000x20000,
it requires a bit less than 2GB of memory and that's because its ARGB),
the document jobs were not thread-safe either

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-15 03:05:30 +03:00
Ivailo Monev
7d6cd5a36e gwenview: execute the move job via KIO::NetAccess::synchronousRun() and set its UI delegate to the document UI delegate
fixes rare hang, there is a bug lurking somewhere - the job progress is
shown only the first time the test is run if not in full session

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-26 17:11:33 +03:00
Ivailo Monev
cc96595607 gwenview: exec the sub-job from the save job to ensure it is not reaped
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-20 02:53:18 +03:00
Ivailo Monev
0b9943643c gwenview: check for error before adding sub-job from the save job
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-20 02:27:33 +03:00
Ivailo Monev
fe05413b08 gwenview: use threaded document job for the save job
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-20 02:12:42 +03:00
Ivailo Monev
7eb1689025 gwenview: different take on async execution
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-19 23:54:12 +03:00
Ivailo Monev
cdfe6fab07 gwenview: reimplement metadata, image data and save job via QThread and std::future<T>
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-19 18:19:37 +03:00
Ivailo Monev
42e3ab6a4d gwenview: save files to temporary files and then move them
fixes saving in some cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-19 04:14:19 +03:00
Ivailo Monev
bf2d9dcd05 import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00