ResizeArea.qml 429 B

12345678910111213141516171819202122232425
  1. import QtQuick 2.15
  2. Item {
  3. id: root
  4. property var cursor
  5. property var edge
  6. DragHandler {
  7. enabled: root.enabled
  8. target: null
  9. onActiveChanged: if (active) _window.startSystemResize(edge);
  10. cursorShape: if (enabled) cursorShape = cursor
  11. dragThreshold: 0
  12. }
  13. MouseArea {
  14. anchors.fill: root
  15. enabled: root.enabled
  16. hoverEnabled: true
  17. cursorShape: if (enabled) cursorShape = cursor
  18. }
  19. }