Skip to content

Commit

Permalink
fix: enumeration value 'WidgetEmbeddable' not handled in switch
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoth committed Feb 20, 2023
1 parent 4082e88 commit 16f23b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DataFlowGraphModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -302,6 +305,9 @@ bool DataFlowGraphModel::setNodeData(NodeId nodeId, NodeRole role, QVariant valu

case NodeRole::Widget:
break;

default:
break;
}

return result;
Expand Down Expand Up @@ -340,7 +346,9 @@ QVariant DataFlowGraphModel::portData(NodeId nodeId,

case PortRole::Caption:
result = model->portCaption(portType, portIndex);
break;

default:
break;
}

Expand Down

0 comments on commit 16f23b9

Please sign in to comment.