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
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// Qt-Security score:significant reason:default
4
5#ifndef DESIGNERSUPPORTPROPERTIES_H
6#define DESIGNERSUPPORTPROPERTIES_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
20
21#include <QObject>
22#include <QString>
23#include <QVariant>
24#include <QList>
25#include <QByteArray>
26#include <QQmlContext>
27#include <QQmlListReference>
28
30
32{
33public:
34 static void createNewDynamicProperty(QObject *object, QQmlEngine *engine, const QString &name);
35 static void registerNodeInstanceMetaObject(QObject *object, QQmlEngine *engine);
36 static void registerCustomData(QObject *object);
37 static QVariant getResetValue(QObject *object, const QQuickDesignerSupport::PropertyName &propertyName);
38 static void doResetProperty(QObject *object, QQmlContext *context, const QQuickDesignerSupport::PropertyName &propertyName);
39 static bool hasValidResetBinding(QObject *object, const QQuickDesignerSupport::PropertyName &propertyName);
40
41 static bool hasBindingForProperty(QObject *object,
42 QQmlContext *context,
43 const QQuickDesignerSupport::PropertyName &propertyName,
44 bool *hasChanged);
45 static void setPropertyBinding(QObject *object,
46 QQmlContext *context,
47 const QQuickDesignerSupport::PropertyName &propertyName,
48 const QString &expression);
49 static void keepBindingFromGettingDeleted(QObject *object,
50 QQmlContext *context,
51 const QQuickDesignerSupport::PropertyName &propertyName);
52
53 static bool isPropertyQObject(const QMetaProperty &metaProperty);
54 static QObject *readQObjectProperty(const QMetaProperty &metaProperty, QObject *object);
55
56 static void getPropertyCache(QObject *object);
57 static bool isPropertyBlackListed(const QQuickDesignerSupport::PropertyName &propertyName);
58 static QQuickDesignerSupport::PropertyNameList propertyNameListForWritableProperties(QObject *object);
59 static QQuickDesignerSupport::PropertyNameList allPropertyNames(QObject *object,
60 const QQuickDesignerSupport::PropertyName &baseName = QQuickDesignerSupport::PropertyName(),
61 QObjectList *inspectedObjects = nullptr,
62 int depth = 0);
63 static bool hasFullImplementedListInterface(const QQmlListReference &list);
64};
65
66QT_END_NAMESPACE
67
68#endif // DESIGNERSUPPORTPROPERTIES_H
static QQuickDesignerCustomObjectData * get(QObject *object)
Combined button and popup list for selecting options.
Q_GLOBAL_STATIC(QReadWriteLock, g_updateMutex)
QHash< QObject *, QQuickDesignerCustomObjectData * > CustomObjectDataHash
QQuickDesignerCustomObjectData * data