korganizer
KOHelper Namespace Reference
Functions | |
| KORGANIZERPRIVATE_EXPORT QColor | getTextColor (const QColor &c) |
| KORGANIZERPRIVATE_EXPORT bool | isStandardCalendar (const Akonadi::Collection &collection) |
| KORGANIZERPRIVATE_EXPORT QColor | resourceColor (const Akonadi::Collection &collection) |
| KORGANIZERPRIVATE_EXPORT QColor | resourceColor (const Akonadi::Item &incidence) |
| KORGANIZERPRIVATE_EXPORT qint64 | yearDiff (const QDate &start, const QDate &end) |
Function Documentation
Returns a nice QColor for text, give the input color &c.
Definition at line 35 of file kohelper.cpp.
| bool KOHelper::isStandardCalendar | ( | const Akonadi::Collection & | collection | ) |
Return true if it's the standard calendar.
Definition at line 62 of file kohelper.cpp.
| KORGANIZERPRIVATE_EXPORT QColor KOHelper::resourceColor | ( | const Akonadi::Collection & | collection | ) |
| KORGANIZERPRIVATE_EXPORT QColor KOHelper::resourceColor | ( | const Akonadi::Item & | incidence | ) |
This method returns the proper resource / subresource color for the view.
- Returns:
- The resource color for the incidence. If the incidence belongs to a subresource, the color for the subresource is returned (if set).
- Parameters:
-
calendar the calendar for which the resource color should be obtained incidence the incidence for which the color is needed (to determine which subresource needs to be used)
KDE 4.5 API Reference