diff options
author | Svenn-Arne Dragly <svenn-arne.dragly@qt.io> | 2018-07-13 13:44:00 +0200 |
---|---|---|
committer | Svenn-Arne Dragly <svenn-arne.dragly@qt.io> | 2018-07-13 11:50:37 +0000 |
commit | 39b8fbca67348b2c078b4e52b432e8979cf383ef (patch) | |
tree | 60ffbaf2ce3cdef575d9ad93a2ee0c087fe3b278 | |
parent | 87dbb35b843d75361297bf925e26d3fd5657fd9f (diff) |
Add QNode id to scene graph in debug view
This makes it easier to identify the corresponding backend node.
Change-Id: Ic1a9437d4eb123449bf349cf0888a5cea8f17d62
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r-- | src/runtime/profileui/q3dsprofileui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/profileui/q3dsprofileui.cpp b/src/runtime/profileui/q3dsprofileui.cpp index a12bfe2..362063b 100644 --- a/src/runtime/profileui/q3dsprofileui.cpp +++ b/src/runtime/profileui/q3dsprofileui.cpp @@ -850,8 +850,9 @@ void Q3DSProfileView::addFrameGraphWindow() void Q3DSProfileView::addQt3DSceneGraphNode(Qt3DCore::QEntity *e) { - QByteArray label = QString(QLatin1String("%1 (0x%2) %3")) + QByteArray label = QString(QLatin1String("%1 (%2, 0x%3) %4")) .arg(QString::fromUtf8(e->metaObject()->className())) + .arg(e->id().id()) .arg((quintptr) e, 0, 16) .arg(e->objectName()) .toUtf8(); @@ -863,7 +864,7 @@ void Q3DSProfileView::addQt3DSceneGraphNode(Qt3DCore::QEntity *e) const int colColPos = compName.lastIndexOf(QLatin1String("::")); if (colColPos >= 0) compName = compName.mid(colColPos + 2); - s += compName + QLatin1String(" "); + s += compName + QLatin1String(" ") + QString::number(c->id().id()) + QLatin1String(" "); } s += QLatin1String("]"); label += s.toUtf8(); |