QtCore/Windows: Output unknown messages in hex in the debug operator for MSG

Task-number: QTBUG-71257
Change-Id: I89335799529e8c518113925d402571a8f7ada244
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
bb10
Friedemann Kleint 2018-10-23 16:11:10 +02:00
parent 00674a1643
commit c6af950bfd
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ QString decodeMSG(const MSG& msg)
else if (const char *wmmsgC = findWMstr(msg.message))
message = QString::fromLatin1(wmmsgC);
else
message = QString::fromLatin1("WM_(%1)").arg(msg.message); // Unknown WM_, so use number
message = QString::fromLatin1("WM_(0x%1)").arg(msg.message, 0, 16); // Unknown WM_, so use number
// Yes, we want to give the WM_ names 20 chars of space before showing the
// decoded message, since some of the common messages are quite long, and