Diffstat (limited to 'core/pim/datebook/holiday/christian/hlist.cpp') (more/less context) (show 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 @@ +#include "hlist.h"
+
+#include <qobject.h>
+
+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;
+}
|