WWidget* PlannerCalendar::renderCell(WWidget* widget, const WDate& date) { if (!widget) widget = new CalendarCell(); CalendarCell* cc = (CalendarCell*)widget; cc->update(user_, date); return cc; }
WWidget* TimesheetCalendar::renderCell(WWidget* widget, const WDate& date) { if (!widget) widget = new CalendarCell(); CalendarCell* cc = static_cast<CalendarCell*> (widget); cc->update(date); return cc; }