Commit graph

15 commits

Author SHA1 Message Date
Ivailo Monev
5d12e973e6 kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 20:45:47 +03:00
Ivailo Monev
048737d48c kdeui: remove bogus bits in KAction::setGlobalShortcut()
the keycode for invalid shortcuts (QKeySequence) is zero, the key could be
zero if alternative shortcut is not set and there is only primary shortcut.
also, Katie's QKeySequence supports only two key combinations now - one for
primary and one for alternative, see the following commit in the Katie
repo:
d03db175529e800f62acd858badb5622be2e00af

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 17:23:59 +03:00
Ivailo Monev
6784f51d58 kdeui: tweak KNotificationManager and KGlobalAccel for automatic service activation
KGlobalAccelPrivate uses service watcher and the interface is invalid until
the service is activated (either by the first call of the interface or some
other lazy-initialization method), however KNotificationManager does
connect to signals immediately (which should work regardless) but the error
may have been logged before

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 12:00:23 +02:00
Ivailo Monev
a1951cfbae kdeui: reuse the already created interface in KGlobalAccelPrivate::getComponent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 11:37:02 +02:00
Ivailo Monev
0e980c95cc kdeui: remove redundant attempts to start D-Bus services
creating QDBusInterface should start the services, in case the services
cannot be started tho delays may be experienced (such as the UI freezing
while waiting for D-Bus reply to finish) thus logging error

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 03:40:07 +02:00
Ivailo Monev
442a016f0a kdeui: correct debug messages area code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 20:25:57 +03:00
Ivailo Monev
ab8812764a kdeui: move the default value for KGlobalAccelPrivate::getComponent() argument to the method declaration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-30 01:25:48 +03:00
Ivailo Monev
ec0b9543aa kdeui: remove unused KGlobalAccelPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 10:51:08 +03:00
Ivailo Monev
c689f83d30 kdeui: remove KGlobalShortcutInfo friend declaration for non-existing class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 10:46:46 +03:00
Ivailo Monev
5e44389ef6 kdeui: fix build by using non-deprecated org.kde.KGlobalAccel interface method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 19:08:29 +03:00
Ivailo Monev
609dc64f8a kdeui: fix on-demand starting of kuiserver, knotify4 and kglobalaccel services
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-23 21:24:47 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +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