diff options
author | Jeremy Powell <jeremy@visionaid.com> | 2019-04-23 10:55:30 +1200 |
---|---|---|
committer | Jeremy Powell <jeremy@visionaid.com> | 2019-04-23 22:35:09 +0000 |
commit | b09cf7966fdf8a6949acd912cfb054556d155ee8 (patch) | |
tree | 4c6736a36b15948144b400f705dcf6484e4e8997 /src | |
parent | ced7d5af9caeedd7b3a2278b052a0b0f7bf951b7 (diff) |
Fix building with qreal float
Change-Id: I02ebf4277142ef426194da0992b3348bd3c83998
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/quicktemplates2/qquicksplitview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |