Commit 11036e9d authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Explicit constructors for commands



Change-Id: I3ea3db0d1c1b0fd19b0e89e7e435671f6f5e91af
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent e0990296
......@@ -43,7 +43,7 @@ class ChangeAuxiliaryCommand
public:
ChangeAuxiliaryCommand();
ChangeAuxiliaryCommand(const QVector<PropertyValueContainer> &auxiliaryChangeVector);
explicit ChangeAuxiliaryCommand(const QVector<PropertyValueContainer> &auxiliaryChangeVector);
QVector<PropertyValueContainer> auxiliaryChanges() const;
......
......@@ -43,7 +43,7 @@ class ChangeBindingsCommand
public:
ChangeBindingsCommand();
ChangeBindingsCommand(const QVector<PropertyBindingContainer> &bindingChangeVector);
explicit ChangeBindingsCommand(const QVector<PropertyBindingContainer> &bindingChangeVector);
QVector<PropertyBindingContainer> bindingChanges() const;
......
......@@ -40,7 +40,7 @@ class ChangeFileUrlCommand
friend QDataStream &operator>>(QDataStream &in, ChangeFileUrlCommand &command);
public:
ChangeFileUrlCommand();
ChangeFileUrlCommand(const QUrl &fileUrl);
explicit ChangeFileUrlCommand(const QUrl &fileUrl);
QUrl fileUrl() const;
......
......@@ -43,7 +43,7 @@ class ChangeIdsCommand
friend QDataStream &operator>>(QDataStream &in, ChangeIdsCommand &command);
public:
ChangeIdsCommand();
ChangeIdsCommand(const QVector<IdContainer> &idVector);
explicit ChangeIdsCommand(const QVector<IdContainer> &idVector);
QVector<IdContainer> ids() const;
......
......@@ -41,7 +41,7 @@ class ChangeNodeSourceCommand
friend QDataStream &operator>>(QDataStream &in, ChangeNodeSourceCommand &command);
public:
ChangeNodeSourceCommand();
ChangeNodeSourceCommand(qint32 instanceId, const QString &nodeSource);
explicit ChangeNodeSourceCommand(qint32 instanceId, const QString &nodeSource);
qint32 instanceId() const;
QString nodeSource() const;
......
......@@ -43,7 +43,7 @@ class ChangeStateCommand
public:
ChangeStateCommand();
ChangeStateCommand(qint32 stateInstanceId);
explicit ChangeStateCommand(qint32 stateInstanceId);
qint32 stateInstanceId() const;
......
......@@ -43,7 +43,7 @@ class ChangeValuesCommand
public:
ChangeValuesCommand();
ChangeValuesCommand(const QVector<PropertyValueContainer> &valueChangeVector);
explicit ChangeValuesCommand(const QVector<PropertyValueContainer> &valueChangeVector);
QVector<PropertyValueContainer> valueChanges() const;
......
......@@ -41,7 +41,7 @@ class ChildrenChangedCommand
friend QDataStream &operator>>(QDataStream &in, ChildrenChangedCommand &command);
public:
ChildrenChangedCommand();
ChildrenChangedCommand(qint32 parentInstanceId, const QVector<qint32> &childrenInstancesconst, const QVector<InformationContainer> &informationVector);
explicit ChildrenChangedCommand(qint32 parentInstanceId, const QVector<qint32> &childrenInstancesconst, const QVector<InformationContainer> &informationVector);
QVector<qint32> childrenInstances() const;
qint32 parentInstanceId() const;
......
......@@ -42,7 +42,7 @@ class CompleteComponentCommand
public:
CompleteComponentCommand();
CompleteComponentCommand(const QVector<qint32> &container);
explicit CompleteComponentCommand(const QVector<qint32> &container);
QVector<qint32> instances() const;
......
......@@ -41,7 +41,7 @@ class ComponentCompletedCommand
public:
ComponentCompletedCommand();
ComponentCompletedCommand(const QVector<qint32> &container);
explicit ComponentCompletedCommand(const QVector<qint32> &container);
QVector<qint32> instances() const;
......
......@@ -43,7 +43,7 @@ class CreateInstancesCommand
public:
CreateInstancesCommand();
CreateInstancesCommand(const QVector<InstanceContainer> &container);
explicit CreateInstancesCommand(const QVector<InstanceContainer> &container);
QVector<InstanceContainer> instances() const;
......
......@@ -49,7 +49,7 @@ class CreateSceneCommand
public:
CreateSceneCommand();
CreateSceneCommand(const QVector<InstanceContainer> &instanceContainer,
explicit CreateSceneCommand(const QVector<InstanceContainer> &instanceContainer,
const QVector<ReparentContainer> &reparentContainer,
const QVector<IdContainer> &idVector,
const QVector<PropertyValueContainer> &valueChangeVector,
......
......@@ -49,7 +49,7 @@ public:
};
DebugOutputCommand();
DebugOutputCommand(const QString &text, Type type);
explicit DebugOutputCommand(const QString &text, Type type);
qint32 type() const;
QString text() const;
......
......@@ -44,7 +44,7 @@ class InformationChangedCommand
public:
InformationChangedCommand();
InformationChangedCommand(const QVector<InformationContainer> &informationVector);
explicit InformationChangedCommand(const QVector<InformationContainer> &informationVector);
QVector<InformationContainer> informations() const;
......
......@@ -40,7 +40,7 @@ class PixmapChangedCommand
friend QDataStream &operator>>(QDataStream &in, PixmapChangedCommand &command);
public:
PixmapChangedCommand();
PixmapChangedCommand(const QVector<ImageContainer> &imageVector);
explicit PixmapChangedCommand(const QVector<ImageContainer> &imageVector);
QVector<ImageContainer> images() const;
......
......@@ -44,7 +44,7 @@ class RemoveInstancesCommand
public:
RemoveInstancesCommand();
RemoveInstancesCommand(const QVector<qint32> &idVector);
explicit RemoveInstancesCommand(const QVector<qint32> &idVector);
QVector<qint32> instanceIds() const;
......
......@@ -42,7 +42,7 @@ class RemovePropertiesCommand
friend QDataStream &operator>>(QDataStream &in, RemovePropertiesCommand &command);
public:
RemovePropertiesCommand();
RemovePropertiesCommand(const QVector<PropertyAbstractContainer> &properties);
explicit RemovePropertiesCommand(const QVector<PropertyAbstractContainer> &properties);
QVector<PropertyAbstractContainer> properties() const;
......
......@@ -43,7 +43,7 @@ class RemoveSharedMemoryCommand
public:
RemoveSharedMemoryCommand();
RemoveSharedMemoryCommand(const QString &typeName, const QVector<qint32> &keyNumberVector);
explicit RemoveSharedMemoryCommand(const QString &typeName, const QVector<qint32> &keyNumberVector);
QString typeName() const;
QVector<qint32> keyNumbers() const;
......
......@@ -43,7 +43,7 @@ class ReparentInstancesCommand
public:
ReparentInstancesCommand();
ReparentInstancesCommand(const QVector<ReparentContainer> &container);
explicit ReparentInstancesCommand(const QVector<ReparentContainer> &container);
QVector<ReparentContainer> reparentInstances() const;
......
......@@ -41,7 +41,7 @@ class StatePreviewImageChangedCommand
friend QDataStream &operator>>(QDataStream &in, StatePreviewImageChangedCommand &command);
public:
StatePreviewImageChangedCommand();
StatePreviewImageChangedCommand(const QVector<ImageContainer> &imageVector);
explicit StatePreviewImageChangedCommand(const QVector<ImageContainer> &imageVector);
QVector<ImageContainer> previews() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment