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
@@ -30,6 +30,7 @@
|
||||
#include "reparentcontainer.h"
|
||||
|
||||
#include <QDataStream>
|
||||
#include <QDebug>
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
@@ -100,4 +101,24 @@ QDataStream &operator>>(QDataStream &in, ReparentContainer &container)
|
||||
return in;
|
||||
}
|
||||
|
||||
QDebug operator <<(QDebug debug, const ReparentContainer &container)
|
||||
{
|
||||
debug.nospace() << "ReparentContainer("
|
||||
<< "instanceId: " << container.instanceId();
|
||||
|
||||
if (container.oldParentInstanceId() >= 0)
|
||||
debug.nospace() << ", " << "oldParentInstanceId: " << container.oldParentInstanceId();
|
||||
|
||||
if (container.oldParentProperty().isEmpty())
|
||||
debug.nospace() << ", " << "oldParentProperty: " << container.oldParentProperty();
|
||||
|
||||
if (container.newParentInstanceId() >= 0)
|
||||
debug.nospace() << ", " << "newParentInstanceId: " << container.newParentInstanceId();
|
||||
|
||||
if (container.newParentProperty().isEmpty())
|
||||
debug.nospace() << ", " << "newParentProperty: " << container.newParentProperty();
|
||||
|
||||
return debug.nospace() << ")";
|
||||
}
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user