diff options
Diffstat (limited to 'tests/manual/WindowContextMenu.qml')
| -rw-r--r-- | tests/manual/WindowContextMenu.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/WindowContextMenu.qml b/tests/manual/WindowContextMenu.qml index 7590c9ccf..573c9c4f2 100644 --- a/tests/manual/WindowContextMenu.qml +++ b/tests/manual/WindowContextMenu.qml @@ -51,7 +51,7 @@ Window { Text { id : selctedLabel anchors.centerIn: parent - text : editMenu.itemTextAt(editMenu.selectedIndex) + text : editMenu.selectedIndex >= 0 ? editMenu.items[editMenu.selectedIndex].text : "No selection" } ContextMenu { @@ -76,6 +76,6 @@ Window { MouseArea { anchors.fill: parent acceptedButtons : Qt.RightButton - onClicked: editMenu.showPopup(mouseX, mouseY, 0) + onClicked: editMenu.popup() } } |
