forked from qt-creator/qt-creator
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 <mahmoud.badri@qt.io>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user