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
qtquickcontrols2windowsstyleplugin.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 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
5
#
include
<
QtQml
/
qqml
.
h
>
6
#
include
<
QtQuickControls2
/
private
/
qquickstyleplugin_p
.
h
>
7
#
include
<
QtQuickControls2
/
qquickstyle
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
extern
void
qml_register_types_QtQuick_Controls_Windows
();
12
Q_GHS_KEEP_REFERENCE
(
qml_register_types_QtQuick_Controls_Windows
);
13
14
class
QtQuickControls2WindowsStylePlugin
:
public
QQuickStylePlugin
15
{
16
Q_OBJECT
17
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
18
19
public
:
20
QtQuickControls2WindowsStylePlugin
(
QObject
*
parent
=
nullptr
);
21
QString
name
()
const
override
;
22
void
initializeTheme
(QQuickTheme *theme)
override
;
23
};
24
25
QtQuickControls2WindowsStylePlugin
::QtQuickControls2WindowsStylePlugin(QObject *parent):
26
QQuickStylePlugin(parent)
27
{
28
volatile
auto
registration = &qml_register_types_QtQuick_Controls_Windows;
29
Q_UNUSED(registration);
30
}
31
32
QString
QtQuickControls2WindowsStylePlugin
::
name
()
const
33
{
34
return
QStringLiteral(
"Windows"
);
35
}
36
37
void
QtQuickControls2WindowsStylePlugin
::
initializeTheme
(QQuickTheme *
/*theme*/
)
38
{
39
}
40
41
QT_END_NAMESPACE
42
43
#
include
"qtquickcontrols2windowsstyleplugin.moc"
QtQuickControls2WindowsStylePlugin
Definition
qtquickcontrols2windowsstyleplugin.cpp:15
QtQuickControls2WindowsStylePlugin::initializeTheme
void initializeTheme(QQuickTheme *theme) override
Definition
qtquickcontrols2windowsstyleplugin.cpp:37
QtQuickControls2WindowsStylePlugin::name
QString name() const override
Definition
qtquickcontrols2windowsstyleplugin.cpp:32
Q_GHS_KEEP_REFERENCE
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Controls_Windows)
qml_register_types_QtQuick_Controls_Windows
QT_BEGIN_NAMESPACE void qml_register_types_QtQuick_Controls_Windows()
qtdeclarative
src
quickcontrols
windows
qtquickcontrols2windowsstyleplugin.cpp
Generated on
for Qt by
1.14.0