From de3605a53db7fb3119615ffe5e8485ebe985e5db Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 16 Jan 2018 17:02:44 +0100 Subject: QQmlEngineDebugService: Use native stream operators for QSize and QSizeF Those are better than toString() as they preserve the actual value. Change-Id: If156b800e48ae9f51f519dadcb75dff4148fc8cb Reviewed-by: Simon Hausmann --- src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/qmltooling') diff --git a/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp b/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp index cbce99956d..d2934ba034 100644 --- a/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp +++ b/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp @@ -214,6 +214,8 @@ QVariant QQmlEngineDebugServiceImpl::valueContents(QVariant value) const case QMetaType::QRectF: case QMetaType::QPoint: case QMetaType::QPointF: + case QMetaType::QSize: + case QMetaType::QSizeF: case QMetaType::QFont: // Don't call the toString() method on those. The stream operators are better. return value; -- cgit v1.2.3