nodeparamtable: bare bones table view for node inputs
This commit is contained in:
+29
-3
@@ -33,9 +33,25 @@ public:
|
||||
NodeValue();
|
||||
NodeValue(const NodeParam::DataType& type, const QVariant& data, const Node* from, const QString& tag = QString());
|
||||
|
||||
const NodeParam::DataType& type() const;
|
||||
const QVariant& data() const;
|
||||
const QString& tag() const;
|
||||
const NodeParam::DataType& type() const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
const QVariant& data() const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
const QString& tag() const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
const Node* source() const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
bool operator==(const NodeValue& rhs) const;
|
||||
|
||||
@@ -90,6 +106,16 @@ public:
|
||||
|
||||
NodeValueTable Merge() const;
|
||||
|
||||
using const_iterator = QHash<QString, NodeValueTable>::const_iterator;
|
||||
|
||||
inline QHash<QString, NodeValueTable>::const_iterator begin() const {
|
||||
return tables_.cbegin();
|
||||
}
|
||||
|
||||
inline QHash<QString, NodeValueTable>::const_iterator end() const {
|
||||
return tables_.cend();
|
||||
}
|
||||
|
||||
private:
|
||||
QHash<QString, NodeValueTable> tables_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user