diff --git a/app/widget/nodeparamview/nodeparamviewcontext.cpp b/app/widget/nodeparamview/nodeparamviewcontext.cpp index c8b409f0b..b55081014 100644 --- a/app/widget/nodeparamview/nodeparamviewcontext.cpp +++ b/app/widget/nodeparamview/nodeparamviewcontext.cpp @@ -20,6 +20,8 @@ #include "nodeparamviewcontext.h" +#include + #include "node/block/clip/clip.h" namespace olive { @@ -39,6 +41,8 @@ NodeParamViewContext::NodeParamViewContext(QWidget *parent) : setBackgroundRole(QPalette::Base); Retranslate(); + + connect(title_bar(), &NodeParamViewItemTitleBar::AddEffectButtonClicked, this, &NodeParamViewContext::AddEffectButtonClicked); } void NodeParamViewContext::AddNode(NodeParamViewItem *item) @@ -89,4 +93,9 @@ void NodeParamViewContext::Retranslate() { } +void NodeParamViewContext::AddEffectButtonClicked() +{ + QMessageBox::information(this, tr("STUB"), tr("This feature is coming soon. Thanks for testing development builds of Olive :)")); +} + } diff --git a/app/widget/nodeparamview/nodeparamviewcontext.h b/app/widget/nodeparamview/nodeparamviewcontext.h index 2b59920c6..a8590271e 100644 --- a/app/widget/nodeparamview/nodeparamviewcontext.h +++ b/app/widget/nodeparamview/nodeparamviewcontext.h @@ -83,6 +83,9 @@ private: QMap items_; +private slots: + void AddEffectButtonClicked(); + }; }