fixed issue with versions of qt older than 5.15

This commit is contained in:
itsmattkc
2021-10-10 18:37:59 -07:00
parent 20cf77d8f2
commit 9962e57b46
+6
View File
@@ -47,7 +47,13 @@ public:
void InsertValue(const NodeValueRow &row)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
value_map_.insert(row);
#else
for (auto it=row.cbegin(); it!=row.cend(); it++) {
value_map_.insert(it.key(), it.value());
}
#endif
}
const NodeValueRow &GetValues() const