add support onLeave and onActivate to pythonqt plugins
This commit is contained in:
parent
47b130c539
commit
f25d6b278d
@ -159,6 +159,24 @@ PythonQtViewStep::isAtEnd() const
|
||||
"is_at_end" } ).toBool();
|
||||
}
|
||||
|
||||
void
|
||||
PythonQtViewStep::onActivate()
|
||||
{
|
||||
CalamaresUtils::lookupAndCall( m_obj,
|
||||
{ "onActivate",
|
||||
"onactivate",
|
||||
"on_activate" });
|
||||
}
|
||||
|
||||
void
|
||||
PythonQtViewStep::onLeave()
|
||||
{
|
||||
CalamaresUtils::lookupAndCall( m_obj,
|
||||
{ "onLeave",
|
||||
"onleave",
|
||||
"on_leave" });
|
||||
}
|
||||
|
||||
|
||||
JobList
|
||||
PythonQtViewStep::jobs() const
|
||||
|
@ -39,6 +39,8 @@ public:
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
void onLeave() override;
|
||||
void onActivate() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
Loading…
Reference in New Issue
Block a user