forked from qt-creator/qt-creator
QmlDesigner: Add qdebugs for commands
Change-Id: I60bdd5b36749be5092d4dabe486b101d62b3df06 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
8f22b84016
commit
0ba2b9b37d
@@ -141,7 +141,7 @@ bool compareCommands(const QVariant &command, const QVariant &controlCommand)
|
||||
return command.value<InformationChangedCommand>() == controlCommand.value<InformationChangedCommand>();
|
||||
else if (command.userType() == valuesChangedCommandType)
|
||||
return command.value<ValuesChangedCommand>() == controlCommand.value<ValuesChangedCommand>();
|
||||
else if (command.userType() == pixmapChangedCommandType)
|
||||
else if (command.userType() == pixmapChangedCommandType)
|
||||
return command.value<PixmapChangedCommand>() == controlCommand.value<PixmapChangedCommand>();
|
||||
else if (command.userType() == childrenChangedCommandType)
|
||||
return command.value<ChildrenChangedCommand>() == controlCommand.value<ChildrenChangedCommand>();
|
||||
@@ -427,9 +427,9 @@ void NodeInstanceClientProxy::dispatchCommand(const QVariant &command)
|
||||
static const int tokenCommandType = QMetaType::type("TokenCommand");
|
||||
static const int endPuppetCommandType = QMetaType::type("EndPuppetCommand");
|
||||
|
||||
if (command.userType() == createInstancesCommandType) {
|
||||
if (command.userType() == createInstancesCommandType)
|
||||
createInstances(command.value<CreateInstancesCommand>());
|
||||
} else if (command.userType() == changeFileUrlCommandType)
|
||||
else if (command.userType() == changeFileUrlCommandType)
|
||||
changeFileUrl(command.value<ChangeFileUrlCommand>());
|
||||
else if (command.userType() == createSceneCommandType)
|
||||
createScene(command.value<CreateSceneCommand>());
|
||||
|
||||
Reference in New Issue
Block a user