2021-12-22 23:29:00 +00:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
2026-03-07 03:08:07 +00:00
|
|
|
import org.kde.kirigami as Kirigami
|
2021-12-22 23:29:00 +00:00
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: handle
|
2024-07-27 03:47:44 +00:00
|
|
|
|
2021-12-22 23:29:00 +00:00
|
|
|
signal tapped()
|
2024-07-27 03:47:44 +00:00
|
|
|
|
2023-07-25 01:13:52 +00:00
|
|
|
implicitWidth: Kirigami.Units.gridUnit * 3
|
2021-12-22 23:29:00 +00:00
|
|
|
implicitHeight: 3
|
|
|
|
|
radius: height
|
2024-11-14 03:34:01 +00:00
|
|
|
color: Qt.rgba(Kirigami.Theme.textColor.r, Kirigami.Theme.textColor.g, Kirigami.Theme.textColor.b, 0.5)
|
2024-07-27 03:47:44 +00:00
|
|
|
|
2021-12-22 23:29:00 +00:00
|
|
|
TapHandler {
|
|
|
|
|
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.PointingHandCursor
|
|
|
|
|
onTapped: handle.tapped()
|
|
|
|
|
}
|
|
|
|
|
}
|