• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

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

QColor KOHelper::getTextColor ( const QColor &  c  ) 

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)
qint64 KOHelper::yearDiff ( const QDate &  start,
const QDate &  end 
)

Returns the number of years between the start QDate and the end QDate.

Definition at line 57 of file kohelper.cpp.

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  •   akonadi_next
  •   kcal
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korganizer
  •   korgac
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • messageviewer
  • runtime
  •   kcm
  •       libmaildir
Generated for kdepim by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal