code cleanup and better text display
This commit is contained in:
@@ -56,6 +56,11 @@ void Node::InvalidateCache(const rational &start_range, const rational &end_rang
|
||||
}
|
||||
}
|
||||
|
||||
NodeParam *Node::ParamAt(int index)
|
||||
{
|
||||
return static_cast<NodeParam*>(children().at(index));
|
||||
}
|
||||
|
||||
QList<NodeParam *> Node::parameters()
|
||||
{
|
||||
return static_qobjectlist_cast<NodeParam>(children());
|
||||
|
||||
@@ -48,6 +48,11 @@ public:
|
||||
*/
|
||||
virtual void InvalidateCache(const rational& start_range, const rational& end_range);
|
||||
|
||||
/**
|
||||
* @brief Return the parameter at a given index
|
||||
*/
|
||||
NodeParam* ParamAt(int index);
|
||||
|
||||
/**
|
||||
* @brief Return a list of NodeParams
|
||||
*/
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
NodeParam::NodeParam(Node *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
|
||||
name_ = "Banjo";
|
||||
}
|
||||
|
||||
const QString &NodeParam::name()
|
||||
|
||||
Reference in New Issue
Block a user