mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
cc3d9e0d2d
* QZXing : Error while integrating it
34 lines
741 B
QML
34 lines
741 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import Qt.labs.platform
|
|
|
|
Menu {
|
|
property var textObj
|
|
|
|
MenuItem {
|
|
text: qsTr("C&ut")
|
|
shortcut: StandardKey.Cut
|
|
enabled: textObj.selectedText
|
|
onTriggered: textObj.cut()
|
|
}
|
|
MenuItem {
|
|
text: qsTr("&Copy")
|
|
shortcut: StandardKey.Copy
|
|
enabled: textObj.selectedText
|
|
onTriggered: textObj.copy()
|
|
}
|
|
MenuItem {
|
|
text: qsTr("&Paste")
|
|
shortcut: StandardKey.Paste
|
|
enabled: textObj.canPaste
|
|
onTriggered: textObj.paste()
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr("&SelectAll")
|
|
shortcut: StandardKey.SelectAll
|
|
enabled: textObj.length > 0
|
|
onTriggered: textObj.selectAll()
|
|
}
|
|
}
|