QmlDesigner.Timeline: Change method name

The name setRecording() was missleading.
The mehtod sets if a timeline is generally active or not.

Change-Id: I3e7369ad21a06a032e231e71e838b3e531cfe848
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-03-19 17:11:51 +01:00
parent 2b33d15bbc
commit 7a4d4c2c0e
2 changed files with 4 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ void TimelineWidget::connectToolbar()
}
}
setRecording(false);
setTimelineActive(false);
}
int TimelineWidget::adjacentFrame(const std::function<qreal(const QVector<qreal> &, qreal)> &fun) const
@@ -393,7 +393,7 @@ void TimelineWidget::setupScrollbar(int min, int max, int current)
void TimelineWidget::setTimelineId(const QString &id)
{
setRecording(!m_timelineView->getTimelines().isEmpty());
setTimelineActive(!m_timelineView->getTimelines().isEmpty());
if (m_timelineView->isAttached()) {
m_toolbar->setCurrentTimeline(m_timelineView->modelNodeForId(id));
m_toolbar->setCurrentState(m_timelineView->currentState().name());
@@ -401,7 +401,7 @@ void TimelineWidget::setTimelineId(const QString &id)
}
}
void TimelineWidget::setRecording(bool b)
void TimelineWidget::setTimelineActive(bool b)
{
if (b) {
m_toolbar->setVisible(true);

View File

@@ -68,7 +68,7 @@ public:
void setupScrollbar(int min, int max, int current);
void setTimelineId(const QString &id);
void setRecording(bool b);
void setTimelineActive(bool b);
public slots:
void selectionChanged();