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:
parent
952da637b0
commit
861a0441b5
2 changed files with 12 additions and 1 deletions
|
@ -43,7 +43,9 @@ Kirigami.BasicListItem
|
||||||
var obj = interfaceFactory.create(checker.device.id());
|
var obj = interfaceFactory.create(checker.device.id());
|
||||||
var page = pageStack.push(
|
var page = pageStack.push(
|
||||||
component,
|
component,
|
||||||
{ pluginInterface: obj }
|
{ pluginInterface: obj,
|
||||||
|
device: checker.device
|
||||||
|
}
|
||||||
);
|
);
|
||||||
obj.parent = page
|
obj.parent = page
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,12 +22,14 @@ import QtQuick 2.2
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 2.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.Page
|
Kirigami.Page
|
||||||
{
|
{
|
||||||
id: mousepad
|
id: mousepad
|
||||||
title: i18n("Remote Control")
|
title: i18n("Remote Control")
|
||||||
property QtObject pluginInterface
|
property QtObject pluginInterface
|
||||||
|
property QtObject device
|
||||||
|
|
||||||
ColumnLayout
|
ColumnLayout
|
||||||
{
|
{
|
||||||
|
@ -54,6 +56,13 @@ Kirigami.Page
|
||||||
lastPos = Qt.point(-1, -1)
|
lastPos = Qt.point(-1, -1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemoteKeyboard {
|
||||||
|
device: mousepad.device
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: remoteState
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue