forked from qt-creator/qt-creator
QmlDesigner: Use MenuItem instead of Action
This avoids conflicts with shortcuts. Task-number: QDS-803 Change-Id: I9269729cf2cb4a6bba9493d768c595748af3392d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -47,32 +47,32 @@ Menu {
|
||||
MenuSeparator {
|
||||
}
|
||||
|
||||
Controls2.Action {
|
||||
Controls2.MenuItem {
|
||||
text: "Copy"
|
||||
enabled: myTextEdit.selectedText !== ""
|
||||
onTriggered: myTextEdit.copy()
|
||||
/* shortcut: StandardKey.Copy Shortcuts in QQC2 seem to override global shortcuts */
|
||||
}
|
||||
Controls2.Action {
|
||||
Controls2.MenuItem {
|
||||
text: "Cut"
|
||||
enabled: myTextEdit.selectedText !== "" && !myTextEdit.readOnly
|
||||
onTriggered: myTextEdit.cut()
|
||||
/* shortcut: StandardKey.Cut Shortcuts in QQC2 seem to override global shortcuts */
|
||||
}
|
||||
Controls2.Action {
|
||||
Controls2.MenuItem {
|
||||
text: "Paste"
|
||||
enabled: myTextEdit.canPaste
|
||||
onTriggered: myTextEdit.paste()
|
||||
/* shortcut: StandardKey.Paste Shortcuts in QQC2 seem to override global shortcuts */
|
||||
}
|
||||
Controls2.Action {
|
||||
Controls2.MenuItem {
|
||||
text: "Delete"
|
||||
enabled: myTextEdit.selectedText !== ""
|
||||
onTriggered: myTextEdit.remove(myTextEdit.selectionStart,
|
||||
myTextEdit.selectionEnd)
|
||||
/* shortcut: StandardKey.Delete Shortcuts in QQC2 seem to override global shortcuts */
|
||||
}
|
||||
Controls2.Action {
|
||||
Controls2.MenuItem {
|
||||
text: "Clear"
|
||||
enabled: myTextEdit.text !== ""
|
||||
onTriggered: myTextEdit.clear()
|
||||
|
Reference in New Issue
Block a user