forked from qt-creator/qt-creator
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:
@@ -260,7 +260,7 @@ void TimelineWidget::connectToolbar()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setRecording(false);
|
setTimelineActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
int TimelineWidget::adjacentFrame(const std::function<qreal(const QVector<qreal> &, qreal)> &fun) const
|
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)
|
void TimelineWidget::setTimelineId(const QString &id)
|
||||||
{
|
{
|
||||||
setRecording(!m_timelineView->getTimelines().isEmpty());
|
setTimelineActive(!m_timelineView->getTimelines().isEmpty());
|
||||||
if (m_timelineView->isAttached()) {
|
if (m_timelineView->isAttached()) {
|
||||||
m_toolbar->setCurrentTimeline(m_timelineView->modelNodeForId(id));
|
m_toolbar->setCurrentTimeline(m_timelineView->modelNodeForId(id));
|
||||||
m_toolbar->setCurrentState(m_timelineView->currentState().name());
|
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) {
|
if (b) {
|
||||||
m_toolbar->setVisible(true);
|
m_toolbar->setVisible(true);
|
||||||
|
@@ -68,7 +68,7 @@ public:
|
|||||||
void setupScrollbar(int min, int max, int current);
|
void setupScrollbar(int min, int max, int current);
|
||||||
void setTimelineId(const QString &id);
|
void setTimelineId(const QString &id);
|
||||||
|
|
||||||
void setRecording(bool b);
|
void setTimelineActive(bool b);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void selectionChanged();
|
void selectionChanged();
|
||||||
|
Reference in New Issue
Block a user