From 97fe0613e6eb0ff25851b66509eba0e8e12c571f Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 28 Jul 2022 11:31:39 +0100 Subject: [PATCH] Support QRectF in debug console --- src/debug_console.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug_console.cpp b/src/debug_console.cpp index 1a1e6c853f..250ecba476 100644 --- a/src/debug_console.cpp +++ b/src/debug_console.cpp @@ -760,6 +760,10 @@ QString DebugConsoleDelegate::displayText(const QVariant &value, const QLocale & const QRect r = value.toRect(); return QStringLiteral("%1,%2 %3x%4").arg(r.x()).arg(r.y()).arg(r.width()).arg(r.height()); } + case QMetaType::QRectF: { + const QRectF r = value.toRectF(); + return QStringLiteral("%1,%2 %3x%4").arg(r.x()).arg(r.y()).arg(r.width()).arg(r.height()); + } default: if (value.userType() == qMetaTypeId()) { if (auto s = value.value()) {