Commit 97fe0613 authored by David Edmundson's avatar David Edmundson Committed by Vlad Zahorodnii
Browse files

Support QRectF in debug console

parent 9177fd18
......@@ -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<KWaylandServer::SurfaceInterface *>()) {
if (auto s = value.value<KWaylandServer::SurfaceInterface *>()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment