aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmlpuppetcommunication/commands/changebindingscommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qmlpuppetcommunication/commands/changebindingscommand.h')
-rw-r--r--src/libs/qmlpuppetcommunication/commands/changebindingscommand.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libs/qmlpuppetcommunication/commands/changebindingscommand.h b/src/libs/qmlpuppetcommunication/commands/changebindingscommand.h
new file mode 100644
index 0000000000..215e143b6f
--- /dev/null
+++ b/src/libs/qmlpuppetcommunication/commands/changebindingscommand.h
@@ -0,0 +1,33 @@
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
+
+#pragma once
+
+#include <QMetaType>
+#include <QVector>
+
+#include "propertybindingcontainer.h"
+
+namespace QmlDesigner {
+
+class ChangeBindingsCommand
+{
+public:
+ friend QDataStream &operator>>(QDataStream &in, ChangeBindingsCommand &command) {
+ in >> command.bindingChanges;
+ return in;
+ }
+
+ friend QDataStream &operator<<(QDataStream &out, const ChangeBindingsCommand &command) {
+ out << command.bindingChanges;
+ return out;
+ }
+
+ friend QDebug operator <<(QDebug debug, const ChangeBindingsCommand &command);
+
+ QVector<PropertyBindingContainer> bindingChanges;
+};
+
+} // namespace QmlDesigner
+
+Q_DECLARE_METATYPE(QmlDesigner::ChangeBindingsCommand)