Commit 9f9b0d4f authored by luyikei's avatar luyikei

main.qml: Fx button for the master output

parent 545e5fd2
......@@ -508,6 +508,17 @@ Rectangle {
selected = false;
}
}
PropertyButton {
id: fxButton
text: "Fx"
selected: false
onPressed: {
workflow.showEffectStack();
selected = false;
}
}
}
}
}
......
......@@ -140,6 +140,15 @@ MainWorkflow::setFps( double fps )
emit fpsChanged( fps );
}
void
MainWorkflow::showEffectStack()
{
#ifdef HAVE_GUI
auto w = new EffectStack( m_sequenceWorkflow->input() );
w->show();
#endif
}
void
MainWorkflow::showEffectStack( quint32 trackId )
{
......
......@@ -209,6 +209,7 @@ class MainWorkflow : public QObject
// FIXME: We can't use #ifdef HAVE_GUI here because qml files can't find them
// You'll get:
// TypeError: Property 'showEffectStack' of object MainWorkflow is not a function
void showEffectStack();
void showEffectStack( quint32 trackId );
void showEffectStack( const QString& uuid );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment