QmlDesigner: Test mode for qml puppet streams

Change-Id: I93128c60892900d6b4728569b84efb0ed835b51f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-07-04 17:06:31 +02:00
parent 6312cc18e2
commit 90ce3aec8b
35 changed files with 836 additions and 72 deletions
@@ -58,6 +58,12 @@ QVector<InformationContainer> ChildrenChangedCommand::informations() const
return m_informationVector;
}
void ChildrenChangedCommand::sort()
{
qSort(m_childrenVector);
qSort(m_informationVector);
}
QDataStream &operator<<(QDataStream &out, const ChildrenChangedCommand &command)
{
out << command.parentInstanceId();
@@ -75,4 +81,11 @@ QDataStream &operator>>(QDataStream &in, ChildrenChangedCommand &command)
return in;
}
bool operator ==(const ChildrenChangedCommand &first, const ChildrenChangedCommand &second)
{
return first.m_parentInstanceId == second.m_parentInstanceId
&& first.m_childrenVector == second.m_childrenVector
&& first.m_informationVector == second.m_informationVector;
}
} // namespace QmlDesigner