Changeset View
Changeset View
Standalone View
Standalone View
korganizer/kohelper.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | /** | ||||
@param calendar the calendar for which the resource color should be obtained | @param calendar the calendar for which the resource color should be obtained | ||||
@param incidence the incidence for which the color is needed (to | @param incidence the incidence for which the color is needed (to | ||||
determine which subresource needs to be used) | determine which subresource needs to be used) | ||||
*/ | */ | ||||
KORGANIZERPRIVATE_EXPORT QColor resourceColor( const Akonadi::Item &incidence ); | KORGANIZERPRIVATE_EXPORT QColor resourceColor( const Akonadi::Item &incidence ); | ||||
KORGANIZERPRIVATE_EXPORT QColor resourceColor( const Akonadi::Collection &collection ); | KORGANIZERPRIVATE_EXPORT QColor resourceColor( const Akonadi::Collection &collection ); | ||||
KORGANIZERPRIVATE_EXPORT QColor resourceColorKnown( const Akonadi::Collection &collection ); | KORGANIZERPRIVATE_EXPORT QColor resourceColorKnown( const Akonadi::Collection &collection ); | ||||
KORGANIZERPRIVATE_EXPORT void setResourceColor( const Akonadi::Collection &collection, const QColor &color ); | KORGANIZERPRIVATE_EXPORT void setResourceColor( Akonadi::Collection &collection, const QColor &color ); | ||||
/** | /** | ||||
Returns the number of years between the @p start QDate and the @p end QDate | Returns the number of years between the @p start QDate and the @p end QDate | ||||
(i.e. the difference in the year number of both dates) | (i.e. the difference in the year number of both dates) | ||||
*/ | */ | ||||
KORGANIZERPRIVATE_EXPORT int yearDiff( const QDate &start, const QDate &end ); | KORGANIZERPRIVATE_EXPORT int yearDiff( const QDate &start, const QDate &end ); | ||||
/** | /** | ||||
Show All 9 Lines |