You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
573 B
27 lines
573 B
/* |
|
SPDX-FileCopyrightText: 2016 Kai Uwe Broulik <kde@privat.broulik.de> |
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
|
*/ |
|
|
|
#include "calendarapplet.h" |
|
|
|
#include <QDateTime> |
|
|
|
CalendarApplet::CalendarApplet(QObject *parent, const QVariantList &data) |
|
: Plasma::Applet(parent, data) |
|
{ |
|
} |
|
|
|
CalendarApplet::~CalendarApplet() |
|
{ |
|
} |
|
|
|
int CalendarApplet::weekNumber(const QDateTime &dateTime) const |
|
{ |
|
return dateTime.date().weekNumber(); |
|
} |
|
|
|
K_PLUGIN_CLASS_WITH_JSON(CalendarApplet, "metadata.json") |
|
|
|
#include "calendarapplet.moc"
|
|
|