node: merge various metadata functions into one
This commit is contained in:
+7
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user