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
581 B
27 lines
581 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 KPluginMetaData &data, const QVariantList &args) |
|
: Plasma::Applet(parent, data, args) |
|
{ |
|
} |
|
|
|
CalendarApplet::~CalendarApplet() |
|
{ |
|
} |
|
|
|
int CalendarApplet::weekNumber(const QDateTime &dateTime) const |
|
{ |
|
return dateTime.date().weekNumber(); |
|
} |
|
|
|
K_PLUGIN_CLASS(CalendarApplet) |
|
|
|
#include "calendarapplet.moc"
|
|
|