From 861a0441b597cb86ca4636faccfc2481c18eff50 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 8 Nov 2018 02:21:49 +0100 Subject: [PATCH] Add RemoteKeyboard control to app Summary: Add textfield for remote keyboard input to app {F6397375} Test Plan: Write some text Reviewers: #kde_connect, apol Reviewed By: #kde_connect, apol Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D16747 --- app/qml/PluginItem.qml | 4 +++- app/qml/mousepad.qml | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/qml/PluginItem.qml b/app/qml/PluginItem.qml index f73649bf0..26a732329 100644 --- a/app/qml/PluginItem.qml +++ b/app/qml/PluginItem.qml @@ -43,7 +43,9 @@ Kirigami.BasicListItem var obj = interfaceFactory.create(checker.device.id()); var page = pageStack.push( component, - { pluginInterface: obj } + { pluginInterface: obj, + device: checker.device + } ); obj.parent = page } diff --git a/app/qml/mousepad.qml b/app/qml/mousepad.qml index fe8246720..15e05a9a8 100644 --- a/app/qml/mousepad.qml +++ b/app/qml/mousepad.qml @@ -22,12 +22,14 @@ import QtQuick 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.1 import org.kde.kirigami 2.0 as Kirigami +import org.kde.kdeconnect 1.0 Kirigami.Page { id: mousepad title: i18n("Remote Control") property QtObject pluginInterface + property QtObject device ColumnLayout { @@ -54,6 +56,13 @@ Kirigami.Page lastPos = Qt.point(-1, -1) } } + + RemoteKeyboard { + device: mousepad.device + Layout.fillWidth: true + visible: remoteState + } + RowLayout { Layout.fillWidth: true