nodeparamtable: bare bones table view for node inputs

This commit is contained in:
itsmattkc
2020-06-17 17:48:07 +10:00
parent 29d56a1583
commit a871c5081b
24 changed files with 620 additions and 91 deletions
+29 -3
View File
@@ -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_;