From c2b0a31e08d9722e7e49cef4ed3d45edd3adb0e6 Mon Sep 17 00:00:00 2001 From: Gabriel Souza Franco Date: Thu, 3 Dec 2020 19:09:15 -0300 Subject: [PATCH] Show window ids as hex in debug console --- debug_console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug_console.cpp b/debug_console.cpp index 766b17bdf5..e7c58055bd 100644 --- a/debug_console.cpp +++ b/debug_console.cpp @@ -1148,7 +1148,7 @@ QVariant DebugConsoleModel::clientData(const QModelIndex &index, int role, const } auto c = clients.at(index.row()); if (role == Qt::DisplayRole) { - return QStringLiteral("%1: %2").arg(c->window()).arg(c->caption()); + return QStringLiteral("0x%1: %2").arg(c->window(), 0, 16).arg(c->caption()); } else if (role == Qt::DecorationRole) { return c->icon(); } @@ -1204,7 +1204,7 @@ QVariant DebugConsoleModel::data(const QModelIndex &index, int role) const } auto u = m_unmanageds.at(index.row()); if (role == Qt::DisplayRole) { - return u->window(); + return QStringLiteral("0x%1").arg(u->window(), 0, 16); } break; }