korganizer
KOHelper Namespace Reference
Functions | |
KORGANIZERPRIVATE_EXPORT QColor | getTextColor (const QColor &c) |
KORGANIZERPRIVATE_EXPORT bool | isStandardCalendar (const Akonadi::Entity::Id &id) |
KORGANIZERPRIVATE_EXPORT QColor | resourceColor (const Akonadi::Item &incidence) |
KORGANIZERPRIVATE_EXPORT QColor | resourceColor (const Akonadi::Collection &collection) |
KORGANIZERPRIVATE_EXPORT void | showSaveIncidenceErrorMsg (QWidget *parent, const KCalCore::Incidence::Ptr &incidence) |
KORGANIZERPRIVATE_EXPORT int | yearDiff (const QDate &start, const QDate &end) |
Function Documentation
QColor KOHelper::getTextColor | ( | const QColor & | c | ) |
Returns a nice QColor for text, give the input color &c.
Definition at line 32 of file kohelper.cpp.
bool KOHelper::isStandardCalendar | ( | const Akonadi::Entity::Id & | id | ) |
Return true if it's the standard calendar.
Definition at line 63 of file kohelper.cpp.
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)
Definition at line 48 of file kohelper.cpp.
QColor KOHelper::resourceColor | ( | const Akonadi::Collection & | collection | ) |
Definition at line 38 of file kohelper.cpp.
void KOHelper::showSaveIncidenceErrorMsg | ( | QWidget * | parent, |
const KCalCore::Incidence::Ptr & | incidence | ||
) |
Definition at line 68 of file kohelper.cpp.
int KOHelper::yearDiff | ( | const QDate & | start, |
const QDate & | end | ||
) |
Returns the number of years between the start
QDate and the end
QDate (i.e.
the difference in the year number of both dates)
Definition at line 58 of file kohelper.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.