import QtQuick // The grab bar under the floating keyboard. Moving the window is up to the // owner (the window manager's move, so it works for mouse and touch alike). Item { id: handle // Narrower when the bar's buttons leave less room in the middle. property real pillWidth: 120 signal dragStarted() implicitHeight: 22 Rectangle { anchors.centerIn: parent width: handle.pillWidth height: 5 radius: height / 2 color: Theme.handle } DragHandler { target: null onActiveChanged: if (active) handle.dragStarted() } }