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

korganizer

Functions
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
calendarthe calendar for which the resource color should be obtained
incidencethe 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

KDE's Doxygen guidelines are available online.

korganizer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal