bool Qtilities::Core::SharedProperty::operator==(const SharedProperty& other) const { if (name != other.propertyNameString()) return false; if (property_value != other.value()) return false; if (is_reserved != other.isReserved()) return false; if (read_only != other.isReadOnly()) return false; if (is_removable != other.isRemovable()) return false; if (supports_change_notifications != other.supportsChangeNotifications()) return false; if (isExportable() != other.isExportable()) return false; return true; }
QHash<QByteArray,QString> Qtilities::Core::ObserverDotWriter::nodeAttributes(QObject* node) const { if (!d->observer) return QHash<QByteArray,QString>(); if (!node) return QHash<QByteArray,QString>(); QList<QByteArray> property_names = node->dynamicPropertyNames(); QHash<QByteArray,QString> dot_properties; for (int i = 0; i < property_names.count(); i++) { QString prop_qstring_name = property_names.at(i); if (prop_qstring_name.startsWith("qti.dot.node")) { // Get the property value: SharedProperty prop = ObjectManager::getSharedProperty(node,property_names.at(i)); if (prop.isValid()) dot_properties[property_names.at(i)] = prop.value().toString(); } } return dot_properties; }
Qtilities::Core::SharedProperty::SharedProperty(const SharedProperty& shared_property) : QtilitiesProperty(shared_property) { property_value = shared_property.value(); }