blob: bbc88a91308c2928d4857b0811712beffc6261bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2025 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
import QtQuick
import QtQuick.Templates as T
T.Action {
text: qsTr("Delete")
icon.name: "edit-delete"
icon.width: 24
icon.height: 24
shortcut: StandardKey.Delete
enabled: !control.readOnly && control.selectedText.length > 0
onTriggered: control.remove(control.selectionStart, control.selectionEnd)
required property var control
}
|