Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4
#ifndef QQUICKIMAGINESTYLE_P_H
5
#define QQUICKIMAGINESTYLE_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <QtCore/qvariant.h>
19
#include <QtQml/qqml.h>
20
#include <QtQuickControls2/qquickattachedpropertypropagator.h>
21
#include <QtQuickControls2Imagine/qtquickcontrols2imagineexports.h>
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_QUICKCONTROLS2IMAGINE_EXPORT
QQuickImagineStyle
:
public
QQuickAttachedPropertyPropagator
26
{
27
Q_OBJECT
28
Q_PROPERTY
(
QString
path
READ
path
WRITE setPath RESET resetPath NOTIFY pathChanged FINAL)
29
Q_PROPERTY
(
QUrl
url
READ
url
NOTIFY pathChanged FINAL)
30
QML_NAMED_ELEMENT
(Imagine)
31
QML_ATTACHED
(
QQuickImagineStyle
)
32
QML_UNCREATABLE
("")
33
QML_ADDED_IN_VERSION
(2, 3)
34
35
public:
36
explicit
QQuickImagineStyle
(
QObject
*parent =
nullptr
);
37
38
static
QQuickImagineStyle
*qmlAttachedProperties(
QObject
*
object
);
39
40
QString
path
() const;
41
void
setPath(const
QString
&
path
);
42
void
inheritPath(const
QString
&
path
);
43
void
propagatePath();
44
void
resetPath();
45
46
QUrl
url
() const;
47
48
Q_SIGNALS
:
49
void
pathChanged();
50
51
protected:
52
void
attachedParentChange(
QQuickAttachedPropertyPropagator
*newParent,
QQuickAttachedPropertyPropagator
*oldParent) override;
53
54
private
:
55
void
init
();
56
57
bool
m_explicitPath =
false
;
58
QString
m_path;
59
};
60
61
QT_END_NAMESPACE
62
63
#endif
// QQUICKIMAGINESTYLE_P_H
QObject
\inmodule QtCore
Definition
qobject.h:103
QQuickAttachedPropertyPropagator
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
Definition
qquickattachedpropertypropagator.h:15
QQuickImagineStyle
Definition
qquickimaginestyle_p.h:26
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QUrl
\inmodule QtCore
Definition
qurl.h:94
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
path
GLsizei const GLchar *const * path
Definition
qopenglext.h:4283
QML_UNCREATABLE
#define QML_UNCREATABLE(REASON)
Definition
qqmlintegration.h:63
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
QML_ATTACHED
#define QML_ATTACHED(ATTACHED_TYPE)
Definition
qqmlintegration.h:112
init
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
Definition
qtextboundaryfinder.cpp:10
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
explicit
#define explicit
Definition
qxcbconnection.cpp:33
url
QUrl url("example.com")
[constructor-url-reference]
Definition
src_corelib_io_qurl.cpp:19
false
return false
Definition
src_corelib_thread_qatomic.cpp:23
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtdeclarative
src
quickcontrols
imagine
qquickimaginestyle_p.h
Generated by
1.10.0