Bug 77997

Summary: Show holidays in KDatePicker
Product: [Frameworks and Libraries] frameworks-kwidgetsaddons Reporter: Mike Bremford <mike-kde>
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: wishlist CC: aspotashev, jlayt, kdelibs-bugs-null, ostroffjh
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mike Bremford 2004-03-19 12:26:22 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    I Don't Know

Here's an idea. When clicking on the clock to pop up a KDatePicker panel, how about marking public holidays for the selected locale somehow? You could change the background of the day from white to light gray, and when the mouse is rolled over the day it could pop up a tooltip with "May Day" or "Easter Monday" or whatever. The dates can come from gcal.

Make it flexible enough and it could also show (for example) birthdays taken from kontact, dates from korganiser and so on...
Comment 1 Stephan Binner 2004-03-21 21:29:23 UTC
WONTFIX? It's KDatePicker, not KOrganizer. :-)
Comment 2 John Layt 2008-10-16 22:36:42 UTC
I can see the value in this, displaying the holidays for the locale, but this would introduce a dependency on kdepimlibs for the holiday classes.  It might be possible to have KDatePicker do that dynamically at run-time, detect if kdepimlibs is installed and if so add the holidays in?  Alternatively, convince kdepim to move their KDateNavgator into kdepimlibs and then panel clock can use that instead of KDatePicker and get the users calendar items into the bargain (all user configurable of course).
Comment 3 John Layt 2009-06-03 16:18:42 UTC
This is currently being implemented by the Plasma guys in the Plasma Calendar for the 4.3 release.  I'll look to lift that code for KDatePicker for 4.4.
Comment 4 Jack 2018-10-11 21:23:04 UTC
Is this still relevant?  (and if so, what is the correct component - assuming the target is the date-picker?)
Comment 5 Christoph Feck 2018-10-12 01:25:07 UTC
We could allow accessing the 'customDatePainting' of (private) KDateTable via new KDatePicker methods. Then applications could use KHolidays framework to add relevant dates to KDatePicker.