forked from qt-creator/qt-creator
Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
|
|
|
#include "reparentinstancescommand.h"
|
|
|
|
#include <QDataStream>
|
|
#include <QDebug>
|
|
|
|
namespace QmlDesigner {
|
|
|
|
ReparentInstancesCommand::ReparentInstancesCommand() = default;
|
|
|
|
ReparentInstancesCommand::ReparentInstancesCommand(const QVector<ReparentContainer> &container)
|
|
: m_reparentInstanceVector(container)
|
|
{
|
|
}
|
|
|
|
QVector<ReparentContainer> ReparentInstancesCommand::reparentInstances() const
|
|
{
|
|
return m_reparentInstanceVector;
|
|
}
|
|
|
|
|
|
QDataStream &operator<<(QDataStream &out, const ReparentInstancesCommand &command)
|
|
{
|
|
out << command.reparentInstances();
|
|
|
|
return out;
|
|
}
|
|
|
|
QDataStream &operator>>(QDataStream &in, ReparentInstancesCommand &command)
|
|
{
|
|
in >> command.m_reparentInstanceVector;
|
|
|
|
return in;
|
|
}
|
|
|
|
QDebug operator <<(QDebug debug, const ReparentInstancesCommand &command)
|
|
{
|
|
return debug.nospace() << "ReparentInstancesCommand(reparentInstances: " << command.m_reparentInstanceVector << ")";
|
|
}
|
|
|
|
} // namespace QmlDesigner
|