node: merge various metadata functions into one

This commit is contained in:
itsmattkc
2023-02-19 21:16:05 -08:00
parent b8ee27e1cb
commit 2c4347e9a6
12 changed files with 127 additions and 107 deletions
+7 -3
View File
@@ -103,10 +103,14 @@ void Node::Retranslate()
SetInputName(kEnabledInput, tr("Enabled"));
}
QIcon Node::icon() const
QVariant Node::data(const DataType &d) const
{
// Just a meaningless default icon to be used where necessary
return icon::New;
if (d == ICON) {
// Just a meaningless default icon to be used where necessary
return icon::New;
}
return QVariant();
}
bool Node::SetNodePositionInContext(Node *node, const QPointF &pos)