Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
23
25{
27 Q_PROPERTY(QString path READ path WRITE setPath RESET resetPath NOTIFY pathChanged FINAL)
28 Q_PROPERTY(QUrl url READ url NOTIFY pathChanged FINAL)
29 QML_NAMED_ELEMENT(Imagine)
33
34public:
35 explicit QQuickImagineStyle(QObject *parent = nullptr);
36
38
39 QString path() const;
40 void setPath(const QString &path);
41 void inheritPath(const QString &path);
42 void propagatePath();
43 void resetPath();
44
45 QUrl url() const;
46
49
50protected:
52
53private:
54 void init();
55
56 bool m_explicitPath = false;
57 QString m_path;
58};
59
61
62#endif // QQUICKIMAGINESTYLE_P_H
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
static QQuickImagineStyle * qmlAttachedProperties(QObject *object)
void inheritPath(const QString &path)
void setPath(const QString &path)
void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLsizei const GLchar *const * path
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS