import QtQuick // Drag handle for moving the Settings panel; double-click recentres it. MouseArea { id: handle required property var window anchors.fill: parent cursorShape: pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor onPressed: mouse => window.beginDrag(handle, mouse.x, mouse.y) onPositionChanged: mouse => window.moveDrag(handle, mouse.x, mouse.y) onReleased: window.endDrag() onCanceled: window.endDrag() onDoubleClicked: window.recenter() }