summaryrefslogtreecommitdiff
path: root/share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@digia.com>2013-07-04 17:06:31 +0200
committerMarco Bubke <marco.bubke@digia.com>2013-07-08 11:28:38 +0200
commit90ce3aec8b31cb24bf729da91d6eb8b0cf300b28 (patch)
tree6b8823f14188bf2372e23fae056172c264030cfa /share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h
parent6312cc18e2e2d9a3a1d4146ad94e22a87e66d6e0 (diff)
downloadqt-creator-90ce3aec8b31cb24bf729da91d6eb8b0cf300b28.tar.gz
QmlDesigner: Test mode for qml puppet streams
Change-Id: I93128c60892900d6b4728569b84efb0ed835b51f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h')
-rw-r--r--share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h b/share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h
index 176733aca8..6b65c61c8d 100644
--- a/share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h
+++ b/share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h
@@ -38,6 +38,7 @@ namespace QmlDesigner {
class ComponentCompletedCommand
{
friend QDataStream &operator>>(QDataStream &in, ComponentCompletedCommand &command);
+ friend bool operator ==(const ComponentCompletedCommand &first, const ComponentCompletedCommand &second);
public:
ComponentCompletedCommand();
@@ -45,6 +46,8 @@ public:
QVector<qint32> instances() const;
+ void sort();
+
private:
QVector<qint32> m_instanceVector;
};
@@ -52,6 +55,8 @@ private:
QDataStream &operator<<(QDataStream &out, const ComponentCompletedCommand &command);
QDataStream &operator>>(QDataStream &in, ComponentCompletedCommand &command);
+bool operator ==(const ComponentCompletedCommand &first, const ComponentCompletedCommand &second);
+
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ComponentCompletedCommand)