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:
@@ -49,6 +49,11 @@ QVector<InformationContainer> InformationChangedCommand::informations() const
|
||||
return m_informationVector;
|
||||
}
|
||||
|
||||
void InformationChangedCommand::sort()
|
||||
{
|
||||
qSort(m_informationVector);
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &out, const InformationChangedCommand &command)
|
||||
{
|
||||
out << command.informations();
|
||||
@@ -63,4 +68,9 @@ QDataStream &operator>>(QDataStream &in, InformationChangedCommand &command)
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator ==(const InformationChangedCommand &first, const InformationChangedCommand &second)
|
||||
{
|
||||
return first.m_informationVector == second.m_informationVector;
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
Reference in New Issue
Block a user