From 094528f9206d3f03220d0bc67951c7034e02dca6 Mon Sep 17 00:00:00 2001
From: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Date: Mon, 22 Sep 2014 12:48:41 +0200
Subject: [PATCH] Gallery: use new menu API for TextArea

Change-Id: I5caf76c8fb225760bc742b20e699c2cc40403e3c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
---
 examples/quick/controls/gallery/content/Controls.qml | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/examples/quick/controls/gallery/content/Controls.qml b/examples/quick/controls/gallery/content/Controls.qml
index 64df4ebdb..a8adf8a59 100644
--- a/examples/quick/controls/gallery/content/Controls.qml
+++ b/examples/quick/controls/gallery/content/Controls.qml
@@ -216,13 +216,7 @@ Item {
                 wrapMode: wrapCheck.checked ? TextEdit.WordWrap : TextEdit.NoWrap
                 Layout.fillWidth: true
                 Layout.fillHeight: true
-                MouseArea {
-                    id: contextMenu
-                    parent: area.viewport
-                    anchors.fill: parent
-                    acceptedButtons: Qt.RightButton
-                    onPressed: editmenu.popup()
-                }
+                menu: editmenu
             }
         }
     }
-- 
GitLab