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
qquickdesignersupportproperties_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 DESIGNERSUPPORTPROPERTIES_H
5#define DESIGNERSUPPORTPROPERTIES_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
19
20#include <QObject>
21#include <QString>
22#include <QVariant>
23#include <QList>
24#include <QByteArray>
25#include <QQmlContext>
26#include <QQmlListReference>
27
29
31{
32public:
33 static void createNewDynamicProperty(QObject *object, QQmlEngine *engine, const QString &name);
34 static void registerNodeInstanceMetaObject(QObject *object, QQmlEngine *engine);
35 static void registerCustomData(QObject *object);
36 static QVariant getResetValue(QObject *object, const QQuickDesignerSupport::PropertyName &propertyName);
37 static void doResetProperty(QObject *object, QQmlContext *context, const QQuickDesignerSupport::PropertyName &propertyName);
38 static bool hasValidResetBinding(QObject *object, const QQuickDesignerSupport::PropertyName &propertyName);
39
40 static bool hasBindingForProperty(QObject *object,
42 const QQuickDesignerSupport::PropertyName &propertyName,
43 bool *hasChanged);
44 static void setPropertyBinding(QObject *object,
46 const QQuickDesignerSupport::PropertyName &propertyName,
47 const QString &expression);
48 static void keepBindingFromGettingDeleted(QObject *object,
50 const QQuickDesignerSupport::PropertyName &propertyName);
51
52 static bool isPropertyQObject(const QMetaProperty &metaProperty);
53 static QObject *readQObjectProperty(const QMetaProperty &metaProperty, QObject *object);
54
55 static void getPropertyCache(QObject *object);
56 static bool isPropertyBlackListed(const QQuickDesignerSupport::PropertyName &propertyName);
58 static QQuickDesignerSupport::PropertyNameList allPropertyNames(QObject *object,
60 QObjectList *inspectedObjects = nullptr,
61 int depth = 0);
62 static bool hasFullImplementedListInterface(const QQmlListReference &list);
63};
64
66
67#endif // DESIGNERSUPPORTPROPERTIES_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:103
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
The QQmlListReference class allows the manipulation of QQmlListProperty properties.
Definition qqmllist.h:183
QList< PropertyName > PropertyNameList
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
static void * context
GLint GLenum GLsizei GLsizei GLsizei depth
GLuint name
static QQuickDesignerSupport::PropertyNameList propertyNameListForWritableProperties(QObject *object, const QQuickDesignerSupport::PropertyName &baseName, QObjectList *inspectedObjects, int depth=0)
QList< int > list
[14]
QJSEngine engine
[0]