diff options
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp b/share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp index f9602a7eb4..3064f946e9 100644 --- a/share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp +++ b/share/qtcreator/qml/qmlpuppet/container/propertybindingcontainer.cpp @@ -29,6 +29,7 @@ #include "propertybindingcontainer.h" +#include <QDebug> namespace QmlDesigner { @@ -90,4 +91,17 @@ QDataStream &operator>>(QDataStream &in, PropertyBindingContainer &container) return in; } +QDebug operator <<(QDebug debug, const PropertyBindingContainer &container) +{ + debug.nospace() << "PropertyBindingContainer(" + << "instanceId: " << container.instanceId() << ", " + << "name: " << container.name() << ", " + << "expression: " << container.expression(); + + if (!container.dynamicTypeName().isEmpty()) + debug.nospace() << ", " << "dynamicTypeName: " << container.dynamicTypeName(); + + return debug.nospace() << ")"; +} + } // namespace QmlDesigner |