Initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
// Qt-Security score:significant reason:default
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Templates as T
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
T.SelectionRectangle {
|
||||
id: control
|
||||
|
||||
topLeftHandle: handle
|
||||
bottomRightHandle: handle
|
||||
|
||||
Component {
|
||||
id: handle
|
||||
SliderHandle {
|
||||
palette: SelectionRectangle.control.palette
|
||||
handlePressed: tapHandler.pressed || SelectionRectangle.dragging
|
||||
handleHovered: hoverHandler.hovered
|
||||
visible: SelectionRectangle.control.active
|
||||
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
id: tapHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user