summaryrefslogtreecommitdiffstats
path: root/examples/wayland/fancy-compositor/qml/Keyboard.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/fancy-compositor/qml/Keyboard.qml')
-rw-r--r--examples/wayland/fancy-compositor/qml/Keyboard.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/wayland/fancy-compositor/qml/Keyboard.qml b/examples/wayland/fancy-compositor/qml/Keyboard.qml
new file mode 100644
index 000000000..2985ffcbd
--- /dev/null
+++ b/examples/wayland/fancy-compositor/qml/Keyboard.qml
@@ -0,0 +1,15 @@
+// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+// ![keyboard]
+import QtQuick
+import QtQuick.VirtualKeyboard
+
+InputPanel {
+ visible: active
+ y: active ? parent.height - height : parent.height
+ anchors.left: parent.left
+ anchors.right: parent.right
+}
+// ![keyboard]
+