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
4
#
include
"qquickimaginestyle_p.h"
5
#
include
"qquickimaginetheme_p.h"
6
7
#
include
<
QtCore
/
qloggingcategory
.
h
>
8
#
include
<
QtQml
/
qqml
.
h
>
9
#
include
<
QtQuickControls2
/
private
/
qquickstyleplugin_p
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
extern
void
qml_register_types_QtQuick_Controls_Imagine
();
14
Q_GHS_KEEP_REFERENCE
(
qml_register_types_QtQuick_Controls_Imagine
);
15
16
class
QtQuickControls2ImagineStylePlugin
:
public
QQuickStylePlugin
17
{
18
Q_OBJECT
19
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
20
21
public
:
22
QtQuickControls2ImagineStylePlugin
(
QObject
*
parent
=
nullptr
);
23
24
QString
name
()
const
override
;
25
void
initializeTheme
(QQuickTheme *theme)
override
;
26
27
QQuickImagineTheme
theme
;
28
};
29
30
QtQuickControls2ImagineStylePlugin
::QtQuickControls2ImagineStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
31
{
32
volatile
auto
registration = &
qml_register_types_QtQuick_Controls_Imagine
;
33
Q_UNUSED(registration);
34
}
35
36
QString
QtQuickControls2ImagineStylePlugin
::
name
()
const
37
{
38
return
QStringLiteral(
"Imagine"
);
39
}
40
41
void
QtQuickControls2ImagineStylePlugin
::
initializeTheme
(QQuickTheme *theme)
42
{
43
this
->theme.initialize(theme);
44
}
45
46
QT_END_NAMESPACE
47
48
#
include
"qtquickcontrols2imaginestyleplugin.moc"
QtQuickControls2ImagineStylePlugin
Definition
qtquickcontrols2imaginestyleplugin.cpp:17
QtQuickControls2ImagineStylePlugin::name
QString name() const override
Definition
qtquickcontrols2imaginestyleplugin.cpp:36
QtQuickControls2ImagineStylePlugin::initializeTheme
void initializeTheme(QQuickTheme *theme) override
Definition
qtquickcontrols2imaginestyleplugin.cpp:41
QtQuickControls2ImagineStylePlugin::theme
QQuickImagineTheme theme
Definition
qtquickcontrols2imaginestyleplugin.cpp:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qml_register_types_QtQuick_Controls_Imagine
QT_BEGIN_NAMESPACE void qml_register_types_QtQuick_Controls_Imagine()
Q_GHS_KEEP_REFERENCE
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_Controls_Imagine)
qtdeclarative
src
quickcontrols
imagine
qtquickcontrols2imaginestyleplugin.cpp
Generated on Sat Sep 28 2024 00:46:53 for Qt by
1.12.0