From b09cf7966fdf8a6949acd912cfb054556d155ee8 Mon Sep 17 00:00:00 2001 From: Jeremy Powell Date: Tue, 23 Apr 2019 10:55:30 +1200 Subject: Fix building with qreal float Change-Id: I02ebf4277142ef426194da0992b3348bd3c83998 Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquicksplitview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/quicktemplates2/qquicksplitview.cpp b/src/quicktemplates2/qquicksplitview.cpp index cbba1671..2c02d442 100644 --- a/src/quicktemplates2/qquicksplitview.cpp +++ b/src/quicktemplates2/qquicksplitview.cpp @@ -335,8 +335,8 @@ void QQuickSplitViewPrivate::layoutResizeSplitItems(qreal &usedWidth, qreal &use if (isBeingResized) { // Don't let the mouse go past either edge of the SplitView. const qreal clampedMousePos = horizontal - ? qBound(0.0, m_mousePos.x(), width) - : qBound(0.0, m_mousePos.y(), height); + ? qBound(qreal(0.0), m_mousePos.x(), width) + : qBound(qreal(0.0), m_mousePos.y(), height); // We also need to ensure that the item's edge doesn't go too far // out and hence give the item more space than is available. -- cgit v1.2.3