aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/effectmakernew/effectmakerview.cpp
diff options
context:
space:
mode:
authorAmr Essam <[email protected]>2023-11-14 14:49:42 +0200
committerAmr Elsayed <[email protected]>2023-11-15 14:29:52 +0000
commit306ce4ab35086dc90165433d09b53e11435b7b30 (patch)
treea24617ff27063b20f83fe3a73fc6bc57063a4ba6 /src/plugins/effectmakernew/effectmakerview.cpp
parentde4c871655afb116bead829599ef55d42f3b0b40 (diff)
EffectMaker: Open saved compositions
- Also fixing issues related to image paths - Composition name is shown in save dialog when re-save - Clear current composition for reset or open a new one Task-number: QDS-11192 Change-Id: I97aad4b5216e6b116343bb274db0f9abd1275fec Reviewed-by: Mahmoud Badri <[email protected]>
Diffstat (limited to 'src/plugins/effectmakernew/effectmakerview.cpp')
-rw-r--r--src/plugins/effectmakernew/effectmakerview.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/effectmakernew/effectmakerview.cpp b/src/plugins/effectmakernew/effectmakerview.cpp
index 40ba4987e67..637c12f6d5a 100644
--- a/src/plugins/effectmakernew/effectmakerview.cpp
+++ b/src/plugins/effectmakernew/effectmakerview.cpp
@@ -59,12 +59,15 @@ QmlDesigner::WidgetInfo EffectMakerView::widgetInfo()
QmlDesigner::WidgetInfo::LeftPane, 0, tr("Effect Maker"));
}
-void EffectMakerView::customNotification(const AbstractView * /*view*/,
- const QString & /*identifier*/,
- const QList<QmlDesigner::ModelNode> & /*nodeList*/,
- const QList<QVariant> & /*data*/)
+void EffectMakerView::customNotification([[maybe_unused]] const AbstractView *view,
+ const QString &identifier,
+ [[maybe_unused]] const QList<QmlDesigner::ModelNode> &nodeList,
+ const QList<QVariant> &data)
{
- // TODO
+ if (identifier == "open_effectmaker_composition" && data.count() > 0) {
+ const QString compositionPath = data[0].toString();
+ m_widget->effectMakerModel()->openComposition(compositionPath);
+ }
}
void EffectMakerView::modelAttached(QmlDesigner::Model *model)