Commit graph

20 commits

Author SHA1 Message Date
Ivailo Monev
a2209be85f kdecore: return boolean from KJobTrackerInterface::registerJob()
so that classes that inherit from it and use D-Bus interfaces can return
true if the interface is not valid as may be the case for
KPlasmaJobTracker, that way KDynamicJobTracker will not have to create
QDBusInterface object to decide which tracker to use

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-22 17:48:49 +03:00
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
e6aeab27f8 kdecore: remove redundant KCompositeJob::slotInfoMessage() proxy slot
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-30 01:54:59 +03:00
Ivailo Monev
2f1255c32b generic: remove redundant IN_IDE_PARSER definition checks
major league, baby! no kdevelop required

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-30 01:26:02 +03:00
Ivailo Monev
5de263ddca kdecore: remove unused KJobTrackerInterface member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-27 07:49:39 +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
ac0a81cd61 kdecore: const-ify KCompositeJob::hasSubjobs()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-16 16:04:07 +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
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
5f025e2a91 kdecore: remove unnecessary headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-08 14:27:46 +00:00
Ivailo Monev
f4f2c7bc75 generic: misc cleanups 2015-09-04 22:56:23 +00:00
Ivailo Monev
eeba19d4c4 generic: misc cleanups 2015-09-04 13:06:11 +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