This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goplasmabindings.
commit 5fa2b39399f0d2732af856bf41860c3531968d31 Author: Mihai Moldovan <io...@ionic.de> Date: Thu Jun 29 22:28:58 2023 +0200 package/contents/ui: add main.qml, also provided by Robert Tari. --- debian/changelog | 1 + package/contents/ui/main.qml | 54 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/debian/changelog b/debian/changelog index c8ff70f..9d8de92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -41,6 +41,7 @@ x2goplasmabindings (3.0.2.3-0x2go1) UNRELEASED; urgency=medium to either %license or %doc macros in %files section. - CMakeLists.txt: only build x2goplasmoidkf5.cpp in Plasma5 mode. - package/metadata.json: add Robert Tari to authors. + - package/contents/ui: add main.qml, also provided by Robert Tari. * debian/control: + Adapt description to also mention KDE 5. + Build-Depend on libkf5plasma-dev and libkf5i18n-dev, with a fallback to diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml new file mode 100644 index 0000000..5c0d0f5 --- /dev/null +++ b/package/contents/ui/main.qml @@ -0,0 +1,54 @@ +/* +* Copyright 2023 Robert Tari +* +* This program is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License version 3, as published +* by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranties of +* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +* PURPOSE. See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <http://www.gnu.org/licenses/>. +* +* Authors: +* Robert Tari <rob...@tari.in> +*/ + +import QtQuick 2.12 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 +import org.kde.plasma.core 2.0 as Core +import org.kde.plasma.plasmoid 2.0 +import org.x2go.plasmoid 1.0 as X2Go + +Item +{ + id: main + Plasmoid.toolTipMainText: i18n ("X2Go session control") + Plasmoid.toolTipSubText: i18n ("You are in an active X2Go session") + property bool bSession: X2Go.Helpers.isSession () + Plasmoid.status: bSession ? Core.Types.ActiveStatus : Core.Types.HiddenStatus + + ColumnLayout + { + anchors.fill: parent + + RoundButton + { + id: button + text: i18n ("Suspend this session") + icon.name: "system-shutdown" + Layout.preferredWidth: width + Layout.preferredHeight: width + Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter + + onClicked: + { + X2Go.Helpers.suspendSession () + } + } + } +} -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goplasmabindings.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits