forked from qt-creator/qt-creator
QmlDesigner: Adapt to renaming in IContext
Change-Id: I93d59f9a0428fc3cbd7ed5498a208960cf34d78e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -36,10 +36,10 @@ TimelineContext::TimelineContext(QWidget *widget)
|
||||
setContext(Core::Context(TimelineConstants::C_QMLTIMELINE));
|
||||
}
|
||||
|
||||
void TimelineContext::contextHelpId(const Core::IContext::HelpIdCallback &callback) const
|
||||
void TimelineContext::contextHelp(const Core::IContext::HelpCallback &callback) const
|
||||
{
|
||||
if (auto *widget = qobject_cast<TimelineWidget *>(m_widget))
|
||||
widget->contextHelpId(callback);
|
||||
widget->contextHelp(callback);
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
@@ -37,7 +37,7 @@ class TimelineContext : public Core::IContext
|
||||
|
||||
public:
|
||||
explicit TimelineContext(QWidget *widget);
|
||||
void contextHelpId(const Core::IContext::HelpIdCallback &callback) const override;
|
||||
void contextHelp(const HelpCallback &callback) const override;
|
||||
};
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
@@ -315,12 +315,12 @@ void TimelineWidget::setTimelineRecording(bool value)
|
||||
graphicsScene()->invalidateRecordButtonsStatus();
|
||||
}
|
||||
|
||||
void TimelineWidget::contextHelpId(const Core::IContext::HelpIdCallback &callback) const
|
||||
void TimelineWidget::contextHelp(const Core::IContext::HelpCallback &callback) const
|
||||
{
|
||||
if (timelineView())
|
||||
timelineView()->contextHelpId(callback);
|
||||
timelineView()->contextHelp(callback);
|
||||
else
|
||||
callback(QString());
|
||||
callback({});
|
||||
}
|
||||
|
||||
void TimelineWidget::init()
|
||||
|
@@ -54,7 +54,7 @@ class TimelineWidget : public QWidget
|
||||
|
||||
public:
|
||||
explicit TimelineWidget(TimelineView *view);
|
||||
void contextHelpId(const Core::IContext::HelpIdCallback &callback) const;
|
||||
void contextHelp(const Core::IContext::HelpCallback &callback) const;
|
||||
|
||||
TimelineGraphicsScene *graphicsScene() const;
|
||||
TimelineView *timelineView() const;
|
||||
|
Reference in New Issue
Block a user