From f75743381cc4407765217551c13f2a728d4f4276 Mon Sep 17 00:00:00 2001 From: QianMoth Date: Mon, 20 Feb 2023 12:40:08 +0800 Subject: [PATCH] fix: enumeration value 'WidgetEmbeddable' not handled in switch --- src/DataFlowGraphModel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DataFlowGraphModel.cpp b/src/DataFlowGraphModel.cpp index 0e05854e..037ed70e 100644 --- a/src/DataFlowGraphModel.cpp +++ b/src/DataFlowGraphModel.cpp @@ -240,6 +240,9 @@ QVariant DataFlowGraphModel::nodeData(NodeId nodeId, NodeRole role) const auto w = model->embeddedWidget(); result = QVariant::fromValue(w); } break; + + default: + break; } return result; @@ -299,6 +302,9 @@ bool DataFlowGraphModel::setNodeData(NodeId nodeId, NodeRole role, QVariant valu case NodeRole::Widget: break; + + default: + break; } return result; @@ -337,7 +343,9 @@ QVariant DataFlowGraphModel::portData(NodeId nodeId, case PortRole::Caption: result = model->portCaption(portType, portIndex); + break; + default: break; }