From d119025a69177c373d75d3fe5936e2319bb4455b Mon Sep 17 00:00:00 2001 From: alwin Date: Wed, 16 Mar 2005 15:04:15 +0000 Subject: added (base) christian holidays --- (limited to 'core/pim/datebook/holiday/christian/hlist.cpp') diff --git a/core/pim/datebook/holiday/christian/hlist.cpp b/core/pim/datebook/holiday/christian/hlist.cpp new file mode 100644 index 0000000..795b075 --- a/dev/null +++ b/core/pim/datebook/holiday/christian/hlist.cpp @@ -0,0 +1,18 @@ +#include "hlist.h" + +#include + +const QStringList HList::entries(const QDate&aDate)const +{ + QStringList ret; + if (aDate.month()==12) { + if (aDate.day()==24) { + ret.append(QObject::tr("Christmas","holidays")); + } + } else if (aDate.month()==1) { + if (aDate.day()==1) { + ret.append(QObject::tr("New year","holidays")); + } + } + return ret; +} -- cgit v0.9.0.2