From f97c03441b8c46ada314f47295ebff4e98bb646e Mon Sep 17 00:00:00 2001
From: Mitch Curtis <mitch.curtis@theqtcompany.com>
Date: Sun, 12 Oct 2014 11:59:13 +0200
Subject: [PATCH] Correct KeyEvent::key documentation.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

"text" is a property, not a function.

Change-Id: I02158d550ff174076396810dca007df1d734bda5
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
---
 src/quick/items/qquickevents.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/quick/items/qquickevents.cpp b/src/quick/items/qquickevents.cpp
index 2ae846a750..e34df86a77 100644
--- a/src/quick/items/qquickevents.cpp
+++ b/src/quick/items/qquickevents.cpp
@@ -61,8 +61,7 @@ Item {
     See \l {Qt::Key}{Qt.Key} for the list of keyboard codes. These codes are
     independent of the underlying window system. Note that this
     function does not distinguish between capital and non-capital
-    letters, use the text() function (returning the Unicode text the
-    key generated) for this purpose.
+    letters; use the \l {KeyEvent::}{text} property for this purpose.
 
     A value of either 0 or \l {Qt::Key_unknown}{Qt.Key_Unknown} means that the event is not
     the result of a known key; for example, it may be the result of
-- 
GitLab