Commit graph

10 commits

Author SHA1 Message Date
Ivailo Monev
de64f8e332 libs: drop the automatic update feature of Plasma::Calendar
only Plasma::ClockApplet uses the Plasma::Calendar class and it disables
automatic updates (because the date comes from data engine). also due to
7819796c55 the date is updated once a second
which was updating the currently selected date thus interfering with date
selection every second so the check that was removed in
d7d63a156b had to be brought back

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 12:12:30 +03:00
Ivailo Monev
c380602abf generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:35:19 +03:00
Ivailo Monev
158fa1dc9d libs: propagate focus event from Plasma::ClockApplet
goes like this:
Plasma::ClockApplet -> Plasma::Calendar -> Plasma::CalendarWidget -> ...

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 20:53:52 +03:00
Ivailo Monev
f1ad39ed60 libs: remove declaration of now non-existing Plasma::Calendar::manualDateChange() slot
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 21:07:29 +03:00
Ivailo Monev
12f0d7468b libs: do not handle key events in Plasma::Calendar
QCalendarWidget already does handle some, including date input via number
keys (Qt::Key_0 to Qt::Key_9)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 19:40:04 +03:00
Ivailo Monev
ecf0d7659b libs: do not grab and ugrab the keyboard from the calendar focus change events
QCalendardWidget (and consequently KCalendarWidget) focus policy is set to
Qt::StrongFocus by default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 18:40:32 +03:00
Ivailo Monev
1c58ec3f25 libs: port to the new calendar widget classes
slick:
https://ibb.co/Vg1TyM2

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-23 11:38:08 +03:00
Ivailo Monev
a467c75b4b libs: remove pim support leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-19 14:33:06 +03:00
Ivailo Monev
b391f7dec2 removed events support from plasma clock, redudant without PIM libraries and we do not support them anymore 2014-11-23 01:15:10 +00:00
Ivailo Monev
a7fd791926 initial import 2014-11-13 19:30:51 +02:00