File indexing completed on 2024-05-26 05:16:56
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Daniel Vrátil <dvratil@redhat.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 * 0006 */ 0007 0008 #include "kcalendargrantleeplugin.h" 0009 #include "datetimefilters.h" 0010 #include "icon.h" 0011 0012 KCalendarGrantleePlugin::KCalendarGrantleePlugin(QObject *parent) 0013 : QObject(parent) 0014 , KTextTemplate::TagLibraryInterface() 0015 { 0016 } 0017 0018 KCalendarGrantleePlugin::~KCalendarGrantleePlugin() 0019 { 0020 } 0021 QHash<QString, KTextTemplate::AbstractNodeFactory *> KCalendarGrantleePlugin::nodeFactories(const QString &name) 0022 { 0023 Q_UNUSED(name) 0024 QHash<QString, KTextTemplate::AbstractNodeFactory *> nodeFactories; 0025 nodeFactories[QStringLiteral("icon")] = new IconTag(); 0026 0027 return nodeFactories; 0028 } 0029 QHash<QString, KTextTemplate::Filter *> KCalendarGrantleePlugin::filters(const QString &name) 0030 { 0031 Q_UNUSED(name) 0032 QHash<QString, KTextTemplate::Filter *> filters; 0033 filters[QStringLiteral("kdate")] = new KDateFilter(); 0034 filters[QStringLiteral("ktime")] = new KTimeFilter(); 0035 filters[QStringLiteral("kdatetime")] = new KDateTimeFilter(); 0036 0037 return filters; 0038 } 0039 0040 #include "moc_kcalendargrantleeplugin.cpp"