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<ImageContainer> PixmapChangedCommand::images() const
|
||||
return m_imageVector;
|
||||
}
|
||||
|
||||
void PixmapChangedCommand::sort()
|
||||
{
|
||||
qSort(m_imageVector);
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &out, const PixmapChangedCommand &command)
|
||||
{
|
||||
out << command.images();
|
||||
@@ -63,4 +68,9 @@ QDataStream &operator>>(QDataStream &in, PixmapChangedCommand &command)
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator ==(const PixmapChangedCommand &first, const PixmapChangedCommand &second)
|
||||
{
|
||||
return first.m_imageVector == second.m_imageVector;
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user