[Bug 154652] KDateTable::setCustomDatePainting() doesn't do anything

Michael Pyne michael.pyne at kdemail.net
Thu Dec 27 04:01:11 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=154652         




------- Additional Comments From michael.pyne kdemail net  2007-12-27 04:01 -------
I agree with the diagnosis.  I would rather turn the customPaintingModes into a QHash keyed on QDate and drop the calls to formatDate everywhere, but that can't be done without creating a qHash() function, and *that* can't be done since it depends on the KDateTable object.

Is there a reason why KCalendarSystem::formatDate() is used as the hash key or does anyone know if it can be switched to QDate::toString() which depends only on the QDate?  If it can't be switched I would say to apply the patch.


More information about the Kdelibs-bugs mailing list