summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-03-01 11:17:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-01 12:39:16 +0100
commit784f04c9fde300e62398d116f3072f66ca3b64bf (patch)
tree94ea39ac787bbbe31938648a925d51e3b7d5bcc0 /tests
parent850124ff583414bef8ec969e34f6667740509781 (diff)
Menus: Doc, manual test fixes
Change-Id: I98c4c6aa39f9a947f0610ac976ed74447252d06b Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/WindowContextMenu.qml4
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()
}
}