blob: 04ebc5260454b1fd54e7c94042a1f970bc4836ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <qmltimeline.h>
#include <QWidget>
QT_FORWARD_DECLARE_CLASS(QSpinBox)
namespace QmlDesigner {
namespace Ui {
class TimelineForm;
}
class TimelineForm : public QWidget
{
Q_OBJECT
public:
explicit TimelineForm(QWidget *parent);
~TimelineForm() override;
void setTimeline(const QmlTimeline &timeline);
QmlTimeline timeline() const;
void setHasAnimation(bool b);
private:
void setProperty(const PropertyName &propertyName, const QVariant &value);
void connectSpinBox(QSpinBox *spinBox, const PropertyName &propertyName);
Ui::TimelineForm *ui;
QmlTimeline m_timeline;
};
} // namespace QmlDesigner
|