author | alwin <alwin> | 2005-03-16 15:04:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-16 15:04:15 (UTC) |
commit | d119025a69177c373d75d3fe5936e2319bb4455b (patch) (unidiff) | |
tree | 7315a34f0837fdc4b887482ed3a25c77804ee62e /core/pim/datebook/holiday/christian/hlist.cpp | |
parent | fcffc58d8058912d67cf223d3057cf4032f821cd (diff) | |
download | opie-d119025a69177c373d75d3fe5936e2319bb4455b.zip opie-d119025a69177c373d75d3fe5936e2319bb4455b.tar.gz opie-d119025a69177c373d75d3fe5936e2319bb4455b.tar.bz2 |
added (base) christian holidays
Diffstat (limited to 'core/pim/datebook/holiday/christian/hlist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/holiday/christian/hlist.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ | |||
1 | #include "hlist.h" | ||
2 | |||
3 | #include <qobject.h> | ||
4 | |||
5 | const QStringList HList::entries(const QDate&aDate)const | ||
6 | { | ||
7 | QStringList ret; | ||
8 | if (aDate.month()==12) { | ||
9 | if (aDate.day()==24) { | ||
10 | ret.append(QObject::tr("Christmas","holidays")); | ||
11 | } | ||
12 | } else if (aDate.month()==1) { | ||
13 | if (aDate.day()==1) { | ||
14 | ret.append(QObject::tr("New year","holidays")); | ||
15 | } | ||
16 | } | ||
17 | return ret; | ||
18 | } | ||