QmlDesigner: Add qdebugs for commands

Change-Id: I60bdd5b36749be5092d4dabe486b101d62b3df06
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-07-16 17:00:07 +02:00
committed by Thomas Hartmann
parent 8f22b84016
commit 0ba2b9b37d
70 changed files with 427 additions and 5 deletions
@@ -29,6 +29,8 @@
#include "createscenecommand.h"
#include <QDebug>
namespace QmlDesigner {
CreateSceneCommand::CreateSceneCommand()
@@ -122,4 +124,17 @@ QDataStream &operator>>(QDataStream &in, CreateSceneCommand &command)
return in;
}
QDebug operator <<(QDebug debug, const CreateSceneCommand &command)
{
return debug.nospace() << "CreateSceneCommand("
<< "instances: " << command.instances() << ", "
<< "reparentInstances: " << command.reparentInstances() << ", "
<< "ids: " << command.ids() << ", "
<< "valueChanges: " << command.valueChanges() << ", "
<< "bindingChanges: " << command.bindingChanges() << ", "
<< "auxiliaryChanges: " << command.auxiliaryChanges() << ", "
<< "imports: " << command.imports() << ", "
<< "fileUrl: " << command.fileUrl() << ")";
}
}