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
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.