Plasma-framework

appletcontext.cpp
1/*
2 SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "appletcontext_p.h"
8
9#include <QJsonArray>
10#include <QQmlContext>
11#include <QQmlExpression>
12#include <QQmlProperty>
13#include <QQuickWindow>
14#include <QRandomGenerator>
15
16#include <QDebug>
17
18#include <KLocalizedString>
19
20#include <Plasma/Applet>
21#include <Plasma/Containment>
22#include <Plasma/Corona>
23
24#include <qloggingcategory.h>
25
26namespace PlasmaQuick
27{
28
29AppletContext::AppletContext(QQmlEngine *engine, Plasma::Applet *applet, SharedQmlEngine *parent)
30 : QQmlContext(engine, applet)
31 , m_applet(applet)
32 , m_sharedEngine(parent)
33{
34 setParent(parent);
35}
36
37AppletContext::~AppletContext()
38{
39}
40
41Plasma::Applet *AppletContext::applet() const
42{
43 return m_applet;
44}
45
46SharedQmlEngine *AppletContext::sharedQmlEngine() const
47{
48 return m_sharedEngine;
49}
50
51}
52
53#include "moc_appletcontext_p.cpp"
The base Applet class.
Definition applet.h:64
The EdgeEventForwarder class This class forwards edge events to be replayed within the given margin T...
Definition action.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:54:11 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.