1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QBLENDTREENODE_P_H
5#define QBLENDTREENODE_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 "qtquicktimelineblendtreesglobal.h"
19
20#include <QObject>
21#include <QtQml>
22
23QT_BEGIN_NAMESPACE
24
25class Q_QUICKTIMELINEBLENDTREES_EXPORT QBlendTreeNode : public QObject
26{
27 Q_OBJECT
28 Q_PROPERTY(bool outputEnabled READ outputEnabled WRITE setOutputEnabled NOTIFY outputEnabledChanged FINAL)
29 QML_NAMED_ELEMENT(BlendTreeNode)
30 QML_UNCREATABLE("Interface Class")
31public:
32 explicit QBlendTreeNode(QObject *parent = nullptr);
33
34 const QHash<QQmlProperty, QVariant> &frameData();
35
36 bool outputEnabled() const;
37 void setOutputEnabled(bool isOutputEnabled);
38
39Q_SIGNALS:
40 void frameDataChanged();
41 void outputEnabledChanged();
42
43protected:
44 QHash<QQmlProperty, QVariant> m_frameData;
45
46private Q_SLOTS:
47 void handleFrameDataChanged();
48
49private:
50 bool m_outputEnabled = false;
51};
52
53QT_END_NAMESPACE
54
55#endif // QBLENDTREENODE_P_H
56

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtquicktimeline/src/timeline/blendtrees/qblendtreenode_p.h