GenericScopeView {
id: scopeItem
objectName: "dashTempScopeItem"
property var scopeThatOpenedScope: null
x: dashContent.x + width
y: dashContent.y
width: parent.width
height: parent.height
visible: scope != null
hasBackAction: true
isCurrent: visible
onBackClicked: {
closeOverlayScope();
closePreview();
}
Connections {
target: scopeItem.scope
onGotoScope: {
dashContent.gotoScope(scopeId);
}
onOpenScope: {
scopeItem.closePreview();
var replacedScope = scopeItem.scope;
scopeItem.scope = scope;
scopeItem.scopeThatOpenedScope.closeScope(replacedScope);
}
}
}