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
This commit is contained in:
Nicolas Fella 2018-11-08 02:21:49 +01:00
parent 952da637b0
commit 861a0441b5
2 changed files with 12 additions and 1 deletions

View file

@ -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
}

View file

@ -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