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 DESIGNERSUPPORTPROPERTYCHANGES_H |
5 | #define DESIGNERSUPPORTPROPERTYCHANGES_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 "qquickdesignersupport_p.h" |
19 | |
20 | #include <QVariant> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class Q_QUICK_EXPORT QQuickDesignerSupportPropertyChanges |
25 | { |
26 | public: |
27 | static void detachFromState(QObject *propertyChanges); |
28 | static void attachToState(QObject *propertyChanges); |
29 | static QObject *targetObject(QObject *propertyChanges); |
30 | static void removeProperty(QObject *propertyChanges, const QQuickDesignerSupport::PropertyName &propertyName); |
31 | static QVariant getProperty(QObject *propertyChanges, const QQuickDesignerSupport::PropertyName &propertyName); |
32 | static void changeValue(QObject *propertyChanges, const QQuickDesignerSupport::PropertyName &propertyName, const QVariant &value); |
33 | static void changeExpression(QObject *propertyChanges, const QQuickDesignerSupport::PropertyName &propertyName, const QString &expression); |
34 | static QObject *stateObject(QObject *propertyChanges); |
35 | static bool isNormalProperty(const QQuickDesignerSupport::PropertyName &propertyName); |
36 | }; |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif // DESIGNERSUPPORTPROPERTYCHANGES_H |
41 |