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
10
13
15{
16 Q_OBJECT
17 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
18
19public:
21 QString name() const override;
22 void initializeTheme(QQuickTheme *theme) override;
23};
24
25QtQuickControls2WindowsStylePlugin::QtQuickControls2WindowsStylePlugin(QObject *parent):
26 QQuickStylePlugin(parent)
27{
28 volatile auto registration = &qml_register_types_QtQuick_Controls_Windows;
29 Q_UNUSED(registration);
30}
31
33{
34 return QStringLiteral("Windows");
35}
36
38{
39}
40
41QT_END_NAMESPACE
42
43#include "qtquickcontrols2windowsstyleplugin.moc"
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Controls_Windows)
QT_BEGIN_NAMESPACE void qml_register_types_QtQuick_Controls_Windows()