Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickimaginestyle_p.h
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
5
#
ifndef
QQUICKIMAGINESTYLE_P_H
6
#
define
QQUICKIMAGINESTYLE_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
qvariant
.
h
>
20
#
include
<
QtQml
/
qqml
.
h
>
21
#
include
<
QtQuickControls2
/
qquickattachedpropertypropagator
.
h
>
22
#
include
<
QtQuickControls2Imagine
/
qtquickcontrols2imagineexports
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
Q_QUICKCONTROLS2IMAGINE_EXPORT
QQuickImagineStyle
:
public
QQuickAttachedPropertyPropagator
27
{
28
Q_OBJECT
29
Q_PROPERTY(QString path READ path WRITE setPath RESET resetPath NOTIFY pathChanged FINAL)
30
Q_PROPERTY(QUrl url READ url NOTIFY pathChanged FINAL)
31
QML_NAMED_ELEMENT(Imagine)
32
QML_ATTACHED(QQuickImagineStyle)
33
QML_UNCREATABLE(
""
)
34
QML_ADDED_IN_VERSION(2, 3)
35
36
public
:
37
explicit
QQuickImagineStyle(QObject *parent =
nullptr
);
38
39
static
QQuickImagineStyle *qmlAttachedProperties(QObject *object);
40
41
QString path()
const
;
42
void
setPath(
const
QString &path);
43
void
inheritPath(
const
QString &path);
44
void
propagatePath();
45
void
resetPath();
46
47
QUrl url()
const
;
48
49
Q_SIGNALS:
50
void
pathChanged();
51
52
protected
:
53
void
attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override;
54
55
private
:
56
void
init();
57
58
bool
m_explicitPath =
false
;
59
QString m_path;
60
};
61
62
QT_END_NAMESPACE
63
64
#
endif
// QQUICKIMAGINESTYLE_P_H
QQuickImagineStyle
Definition
qquickimaginestyle_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
resolveSetting
static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer< QSettings > &settings, const QString &name)
Definition
qquickimaginestyle.cpp:112
qtdeclarative
src
quickcontrols
imagine
qquickimaginestyle_p.h
Generated on
for Qt by
1.18.0