Ivailo Monev
d3ca6d35c5
plasma: do not load runners when the allowed runners change
...
unless there are runners loaded that may have to be unloaded for example,
that way the initial loading of runners will be delayed until the first
query
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 02:51:16 +03:00
Ivailo Monev
df9bffd10c
plasma: reset runners context before waiting
...
so that runners know that it is time for them to stop because the context
is no longer valid
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 22:28:17 +03:00
Ivailo Monev
595991ff55
plasma: simplify runners setup and correct signals emission
...
Plasma::RunnerManager::matchesChanged() is now emitted when new matches
arive, Plasma::RunnerManager::queryFinished() when matching is done (all
match jobs finished)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 18:18:42 +03:00
Ivailo Monev
f452997709
plasma: remove unused and redundant Plasma::RunnerContext methods
...
nothing but the manager is supposed to remove matches and there is a
Plasma::RunnerContext::reset() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 17:32:27 +03:00
Ivailo Monev
632dd982df
plasma: remove redundant KThreadPool::setMaxThreadCount() call
...
KThreadPool uses the same value by default
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 06:40:49 +03:00
Ivailo Monev
a871678ec4
plasma: rework runners classes to not pass around the context
...
unused in most cases, shared data and dangerous to pass around
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 05:15:02 +03:00
Ivailo Monev
2f485d5376
generic: replace QThreadPool and QRunnable with custom class
...
on a side note it does not solve any thread-safety issues, such are out
of the scope of the class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 03:05:03 +03:00
Ivailo Monev
e7fcb90738
plasma: actually use the priority
...
the runners priority property was not used for anything, it is now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-17 21:35:38 +03:00
Ivailo Monev
76fa8e28b8
plasma: remove checks for non-existing properties in Plasma::ScrollWidget
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-17 01:47:22 +03:00
Ivailo Monev
a179fd4603
plasma: drop unused runners matching feature
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-17 00:49:17 +03:00
Ivailo Monev
8163991f03
plasma: rework runners to not rely on configuration
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 23:23:58 +03:00
Ivailo Monev
1f11147bd4
plasma: drop redundant Plasma::PluginLoader class
...
not finished either
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-16 22:33:18 +03:00
Ivailo Monev
2fe79a003e
plasma: warn when runner fails to load
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-11 13:17:13 +03:00
Ivailo Monev
f3a9b3c0c2
plasma: do not lock when setting runners speed
...
much like done for the priority, the speed is enum and not shared data so..
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 19:36:37 +03:00
Ivailo Monev
93c35e4c15
generic: remove build-time compat options
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 19:57:19 +03:00
Ivailo Monev
fbfb374b9c
generic: drop scripting and tray support
...
after changes to multiple sub-projects (Katie, kdelibs, kde-workspace
and kde-extraapps) that finally happened, can write lots about it but I
will keep it short - by rewriting parts that were using js/qml (e.g. the
plasma applets) the desktop startup was reduced to half, also the legacy
tray thing shall be no more (anything that needs tray icon shall be a
plasma applet now) thus some applications and features will be dropped
aswell. see all repositories for the changes done
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:06:58 +03:00
Ivailo Monev
e11edce0d8
plasma: convert Plasma::PluginLoader methods to static
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-03 01:26:42 +03:00
Ivailo Monev
263c5d48da
plasma: do not check plugins version
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-30 18:59:29 +03:00
Ivailo Monev
9d785124c6
plasma: remove unused runner, dataengine and wallpaper scripting support
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-08 15:41:29 +03:00
Ivailo Monev
a2b88f9f6d
plasma: print plugin name from version compatibility function
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-11-26 03:08:34 +00:00
Ivailo Monev
2a585a9d42
plasma: oops, fix build after 5600c15d
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 08:29:57 +00:00
Ivailo Monev
5600c15dec
generic: misc cleanups
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 08:06:16 +00:00
Ivailo Monev
01be7e289b
plasma: remove dead code from runners implementation
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-09 17:12:57 +00:00
Ivailo Monev
e7b9481e80
plasma: use QThreadPool and QRunnable for even faster runners
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-09 07:54:42 +00:00
Ivailo Monev
8993202acd
plasma: make runners use QThread instead of ThreadWeaver
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-07 10:55:05 +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