Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtquickcontrols2imaginestyleplugin.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
7
8#include <QtCore/qloggingcategory.h>
9#include <QtQml/qqml.h>
10#include <QtQuickControls2/private/qquickstyleplugin_p.h>
11
13
16
18{
19 Q_OBJECT
20 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
21
22public:
24
25 QString name() const override;
26 void initializeTheme(QQuickTheme *theme) override;
27
29};
30
31QtQuickControls2ImagineStylePlugin::QtQuickControls2ImagineStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
32{
33 volatile auto registration = &qml_register_types_QtQuick_Controls_Imagine;
34 Q_UNUSED(registration);
35}
36
38{
39 return QStringLiteral("Imagine");
40}
41
43{
44 this->theme.initialize(theme);
45}
46
47QT_END_NAMESPACE
48
49#include "qtquickcontrols2imaginestyleplugin.moc"
QT_BEGIN_NAMESPACE void qml_register_types_QtQuick_Controls_Imagine()
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Controls_Imagine)