12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import QtQuick
- import QtQuick.Templates as T
- import QtQuick.Controls.impl
- import QtQuick.Controls.Imagine
- import QtQuick.Controls.Imagine.impl
- T.SelectionRectangle {
- id: control
- topLeftHandle: handle
- bottomRightHandle: handle
- Component {
- id: handle
- Image {
- id: image
- source: Imagine.url + "slider-handle"
- visible: SelectionRectangle.control.active
- ImageSelector on source {
- states: [
- {"vertical": false},
- {"horizontal": true},
- {"disabled": false},
- {"pressed": tapHandler.pressed || image.SelectionRectangle.dragging},
- {"focused": true},
- {"mirrored": false},
- {"hovered": hoverHandler.hovered}
- ]
- }
- HoverHandler {
- id: hoverHandler
- }
- TapHandler {
- id: tapHandler
- }
- }
- }
- }
|