From 5e10b7c58b6c252661a7b3097acff13413a6a2aa Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 1 Feb 2018 11:11:39 +0100 Subject: Use Qt Quick Controls 2 in the basic example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace custom text input types with corresponding Qt Quick Controls 2 types. - Replace custom scrollbar with ScrollBar from Qt Quick Controls 2. - Only build the basic example if Qt Quick Controls 2 is available. - Update the documentation and its screenshot. Change-Id: Ib2559595d4a589bb228450bc08be5ab6fbc69b91 Reviewed-by: Jarkko Koivikko Reviewed-by: Mitch Curtis Reviewed-by: Topi Reiniƶ --- src/virtualkeyboard/doc/images/basic-example.png | Bin 34147 -> 73322 bytes .../doc/src/qtvirtualkeyboard-examples.qdoc | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/virtualkeyboard/doc/images/basic-example.png b/src/virtualkeyboard/doc/images/basic-example.png index 7401c168..6f46bb30 100644 Binary files a/src/virtualkeyboard/doc/images/basic-example.png and b/src/virtualkeyboard/doc/images/basic-example.png differ diff --git a/src/virtualkeyboard/doc/src/qtvirtualkeyboard-examples.qdoc b/src/virtualkeyboard/doc/src/qtvirtualkeyboard-examples.qdoc index ef2bf69f..2313ce41 100644 --- a/src/virtualkeyboard/doc/src/qtvirtualkeyboard-examples.qdoc +++ b/src/virtualkeyboard/doc/src/qtvirtualkeyboard-examples.qdoc @@ -40,8 +40,8 @@ \ingroup qtvirtualkeyboard-examples \image basic-example.png - The example has two implementations: one for the desktop - platforms and another for the embedded platforms. The former version + The example has two implementations: one for desktop + platforms and another for embedded platforms. The former version enables text input into several text fields using the virtual keyboard, whereas the latter version uses the same UI but with a custom virtual keyboard InputPanel. The following snippet from @@ -74,10 +74,10 @@ \skipto /^\}$/ \printuntil } - The TextField and TextArea are inherited from the TextBase custom type, - which has \c enterKeyEnabled, \c enterKeyText, and \c enterKeyAction - properties. The TextField and TextArea instances in the snippet can - set these properties to change the default behavior. + The TextField and TextArea controls extend the respective + \l {Qt Quick Controls 2} types with \c enterKeyEnabled and + \c enterKeyAction properties. The TextField and TextArea instances in the + snippet can set these properties to change the default behavior. \include examples-run.qdocinc */ -- cgit v1.2.3