diff options
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. |