aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h')
-rw-r--r--share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h b/share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h
index b2df9e326c..a23f896712 100644
--- a/share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h
+++ b/share/qtcreator/qml/qmlpuppet/commands/changebindingscommand.h
@@ -34,23 +34,21 @@ namespace QmlDesigner {
class ChangeBindingsCommand
{
- friend QDataStream &operator>>(QDataStream &in, ChangeBindingsCommand &command);
- friend QDebug operator <<(QDebug debug, const ChangeBindingsCommand &command);
-
public:
- ChangeBindingsCommand();
- explicit ChangeBindingsCommand(const QVector<PropertyBindingContainer> &bindingChangeVector);
-
- QVector<PropertyBindingContainer> bindingChanges() const;
+ friend QDataStream &operator>>(QDataStream &in, ChangeBindingsCommand &command) {
+ in >> command.bindingChanges;
+ return in;
+ }
-private:
- QVector<PropertyBindingContainer> m_bindingChangeVector;
-};
+ friend QDataStream &operator<<(QDataStream &out, const ChangeBindingsCommand &command) {
+ out << command.bindingChanges;
+ return out;
+ }
-QDataStream &operator<<(QDataStream &out, const ChangeBindingsCommand &command);
-QDataStream &operator>>(QDataStream &in, ChangeBindingsCommand &command);
+ friend QDebug operator <<(QDebug debug, const ChangeBindingsCommand &command);
-QDebug operator <<(QDebug debug, const ChangeBindingsCommand &command);
+ QVector<PropertyBindingContainer> bindingChanges;
+};
} // namespace QmlDesigner