From 3d0964fb490a88c24002891c8306371c51528ffb Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 2 Jan 2022 11:14:14 -0800 Subject: [PATCH] add stub message --- app/widget/nodeparamview/nodeparamviewcontext.cpp | 9 +++++++++ app/widget/nodeparamview/nodeparamviewcontext.h | 3 +++ 2 files changed, 12 insertions(+) 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(); + }; }