Kirigami-addons

types.h
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4#include <qqmlregistration.h>
5#include <QQmlEngine>
6
7#ifdef Q_OS_ANDROID
8#include "androidintegration.h"
9
10struct AndroidIntegrationForeign
11{
12 Q_GADGET
13 QML_FOREIGN(KirigamiAddonsDateAndTime::AndroidIntegration)
14 QML_NAMED_ELEMENT(AndroidIntegration)
15 QML_SINGLETON
16
17public:
18 static KirigamiAddonsDateAndTime::AndroidIntegration *create(QQmlEngine *, QJSEngine *)
19 {
20 auto instance = &KirigamiAddonsDateAndTime::AndroidIntegration::instance();
22 return instance;
23 }
24};
25#endif
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
void setObjectOwnership(QObject *object, ObjectOwnership ownership)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.