From 86d7c96a2877a451940ca64e6c1080693d231ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 14 Feb 2013 03:39:02 +0100 Subject: [PATCH] Applet used to test components and imports --- .../contents/ui/testcomponents.qml | 38 +++++++++++++++++++ shell/testcomponentsapplet/metadata.desktop | 18 +++++++++ 2 files changed, 56 insertions(+) create mode 100644 shell/testcomponentsapplet/contents/ui/testcomponents.qml create mode 100644 shell/testcomponentsapplet/metadata.desktop diff --git a/shell/testcomponentsapplet/contents/ui/testcomponents.qml b/shell/testcomponentsapplet/contents/ui/testcomponents.qml new file mode 100644 index 000000000..e9638bfda --- /dev/null +++ b/shell/testcomponentsapplet/contents/ui/testcomponents.qml @@ -0,0 +1,38 @@ +/* + * Copyright 2013 Marco Martin + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtQuick 2.0 + +import org.kde.plasma.core 0.1 as PlasmaCore +import org.kde.plasma.components 0.1 as PlasmaComponents +import org.kde.qtextracomponents 0.1 as QtExtras + +Item { + id: root + width: 100 + height: 100 + + PlasmaComponents.Label { + anchors.centerIn: parent + text: "This is a PlasmaComponent" + } + + Component.onCompleted: { + print("Components Test Applet loaded") + } +} \ No newline at end of file diff --git a/shell/testcomponentsapplet/metadata.desktop b/shell/testcomponentsapplet/metadata.desktop new file mode 100644 index 000000000..7896f69d0 --- /dev/null +++ b/shell/testcomponentsapplet/metadata.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Encoding=UTF-8 +Keywords= +Name=Components Test +Type=Service +Icon=plasma + +X-KDE-ServiceTypes=Plasma/Applet +X-Plasma-API=declarativeappletscript +X-KDE-ParentApp= +X-KDE-PluginInfo-Author=Sebastian Kügler +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Email=sebas@kde.org +X-KDE-PluginInfo-License=GPLv2+ +X-KDE-PluginInfo-Name=org.kde.testcomponentsapplet +X-KDE-PluginInfo-Version= +X-KDE-PluginInfo-Website= +X-Plasma-MainScript=ui/testcomponents.qml