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 de6f4f4 commit f757433
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 @@ -299,6 +302,9 @@ bool DataFlowGraphModel::setNodeData(NodeId nodeId, NodeRole role, QVariant valu

case NodeRole::Widget:
break;

default:
break;
}

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

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

default:
break;
}

Expand Down

0 comments on commit f757433

Please sign in to comment.