MauiKit Calendar

plugin.h
1#pragma once
2
3#include <QObject>
4#include <QUrl>
5#include <QQmlExtensionPlugin>
6
7class MauiCalendarPlugin : public QQmlExtensionPlugin
8{
10 Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
11
12public:
13 void registerTypes(const char *uri) override;
14
15 QUrl resolveFileUrl(const QString &filePath) const
16 {
17#ifdef QUICK_COMPILER
18 return QUrl(QStringLiteral("qrc:/maui/calendar/") + filePath);
19#else
20 return QUrl(baseUrl().toString() + QStringLiteral("/") + filePath);
21#endif
22 }
23};
char * toString(const EngineQuery &query)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.