forked from qt-creator/qt-creator
QmlDesigner: Test mode for qml puppet streams
Change-Id: I93128c60892900d6b4728569b84efb0ed835b51f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user