mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #116 using CVariant in the implementation of CIndexVariantMap
This commit is contained in:
@@ -115,7 +115,7 @@ namespace BlackMisc
|
||||
const auto &map = indexMap.map();
|
||||
for (auto it = map.begin(); it != map.end(); ++it)
|
||||
{
|
||||
this->setPropertyByIndex(it.value(), it.key());
|
||||
this->setPropertyByIndex(it.value().toQVariant(), it.key());
|
||||
}
|
||||
return c;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ namespace BlackMisc
|
||||
{
|
||||
// QVariant cannot be compared directly
|
||||
QVariant p = valueObject.propertyByIndex(it.key()); // from value object
|
||||
QVariant v = it.value(); // from map
|
||||
QVariant v = it.value().toQVariant(); // from map
|
||||
if (!BlackMisc::equalQVariants(p, v)) return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user