//---------------------------------------------------------------------------- void ctkPluginFrameworkDebug::setPropertyIfNotSet(ctkProperties& props, const QString& key, const QVariant& val) { if (!props.contains(key)) { props.insert(key, val); } }
//---------------------------------------------------------------------------- void mergeProperties(ctkProperties& destination, const ctkProperties& source) { for (ctkProperties::const_iterator iter = source.begin(); iter != source.end(); ++iter) { if (!destination.contains(iter.key())) { destination.insert(iter.key(), iter.value()); } } }