KWin
Loading...
Searching...
No Matches
src
plugins
kdecorations
aurorae
themes
plastik
code
plastikplugin.cpp
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#include "
plastikplugin.h
"
7
#include "
plastikbutton.h
"
8
#include <QQmlEngine>
9
10
void
PlastikPlugin::registerTypes
(
const
char
*uri)
11
{
12
// Need to register something to tell Qt that it loaded (QTBUG-84571)
13
qmlRegisterModule(uri, 1, 0);
14
}
15
16
void
PlastikPlugin::initializeEngine
(QQmlEngine *engine,
const
char
*uri)
17
{
18
Q_ASSERT(QLatin1String(uri) == QLatin1String(
"org.kde.kwin.decorations.plastik"
));
19
engine->addImageProvider(QLatin1String(
"plastik"
),
new
KWin::PlastikButtonProvider
());
20
QQmlExtensionPlugin::initializeEngine(engine, uri);
21
}
22
23
#include "moc_plastikplugin.cpp"
KWin::PlastikButtonProvider
Definition
plastikbutton.h:14
PlastikPlugin::initializeEngine
void initializeEngine(QQmlEngine *engine, const char *uri) override
Definition
plastikplugin.cpp:16
PlastikPlugin::registerTypes
void registerTypes(const char *uri) override
Definition
plastikplugin.cpp:10
plastikbutton.h
plastikplugin.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0