fixed issue with versions of qt older than 5.15
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user