Files
qt-creator/share/qtcreator/qml/qmlpuppet/commands/changevaluescommand.h

36 lines
1004 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QMetaType>
#include <QVector>
#include "propertyvaluecontainer.h"
namespace QmlDesigner {
class ChangeValuesCommand
{
friend QDataStream &operator>>(QDataStream &in, ChangeValuesCommand &command);
friend QDebug operator <<(QDebug debug, const ChangeValuesCommand &command);
public:
ChangeValuesCommand();
explicit ChangeValuesCommand(const QVector<PropertyValueContainer> &valueChangeVector);
QVector<PropertyValueContainer> valueChanges() const;
private:
QVector<PropertyValueContainer> m_valueChangeVector;
};
QDataStream &operator<<(QDataStream &out, const ChangeValuesCommand &command);
QDataStream &operator>>(QDataStream &in, ChangeValuesCommand &command);
QDebug operator <<(QDebug debug, const ChangeValuesCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeValuesCommand)