summaryrefslogtreecommitdiff
path: root/core/pim/datebook/holiday/christian/hlist.cpp
blob: 2ce13f5957a3c98539fbb572abe99f501a9d2fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}