Warning, /network/kdeconnect-kde/app/qml/presentationRemote.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <aleixpol@kde.org>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 import QtQuick
0008 import QtQuick.Controls
0009 import QtQuick.Layouts
0010 import org.kde.kirigami as Kirigami
0011 
0012 Kirigami.Page
0013 {
0014     id: mousepad
0015     title: i18nd("kdeconnect-app", "Presentation Remote")
0016     property QtObject pluginInterface
0017 
0018     actions: [
0019         Kirigami.Action {
0020             icon.name: "view-fullscreen"
0021             text: i18nd("kdeconnect-app", "Enable Full-Screen")
0022             onTriggered: {
0023                 mousepad.pluginInterface.sendKeyPress("", 25 /*XK_F5*/);
0024             }
0025         }
0026     ]
0027 
0028     ColumnLayout
0029     {
0030         anchors.fill: parent
0031 
0032         RowLayout {
0033             Layout.fillWidth: true
0034             Button {
0035                 Layout.fillWidth: true
0036                 icon.name: "media-skip-backward"
0037                 onClicked: mousepad.pluginInterface.sendKeyPress("p");
0038             }
0039             Button {
0040                 Layout.fillWidth: true
0041                 icon.name: "media-skip-forward"
0042                 onClicked: mousepad.pluginInterface.sendKeyPress("n");
0043             }
0044         }
0045     }
0046 }