Commit graph

11 commits

Author SHA1 Message Date
Ivailo Monev
9375b3ce72 Revert "kdecore: unexport KJobPrivate"
This reverts commit d797c27b77.
2024-05-05 04:44:29 +03:00
Ivailo Monev
d797c27b77 kdecore: unexport KJobPrivate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-05 04:04:41 +03:00
Ivailo Monev
d02a35de93 kdecore: remove redundant private member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-02 10:28:02 +03:00
Ivailo Monev
2cfad25b46 kdecore: use custom QEventLoop for KJob::exec()
fixes heap-use-after-free. parented to the application instance, scoped to
KJob::exec() tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-05 03:14:14 +03:00
Ivailo Monev
f53dc16596 kdecore: process all events while waiting for job to finish in KJob::exec()
fixes hang in case the job progress is not hidden and UI events have to be processed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-26 07:39:45 +03:00
Ivailo Monev
40999b8b80 kdecore: use QCoreApplication::processEvents() instead of QEventLoop in KJob::exec()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-10 19:39:52 +03:00
Ivailo Monev
450cb5fd2f kdecore: use fixed-size array for KJobPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-11 23:35:50 +02:00
Ivailo Monev
590d33defc kdecore: reuse argument in KJob
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-01 11:30:52 +02:00
Ivailo Monev
bde28a2b96 kdecore: avoid temporaries and assignments in KJob setters
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-04-09 08:21:10 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00