diff options
author | Marco Bubke <marco.bubke@digia.com> | 2013-07-04 17:06:31 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@digia.com> | 2013-07-08 11:28:38 +0200 |
commit | 90ce3aec8b31cb24bf729da91d6eb8b0cf300b28 (patch) | |
tree | 6b8823f14188bf2372e23fae056172c264030cfa /share/qtcreator/qml/qmlpuppet/commands/componentcompletedcommand.h | |
parent | 6312cc18e2e2d9a3a1d4146ad94e22a87e66d6e0 (diff) | |
download | qt-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.h | 5 |
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) |