From 76377cdf5d0658672bea5cc84f1c7d5657b8aea2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 9 Dec 2015 12:14:38 +0100 Subject: Make the KAppTemplate CMake module global templates are very useful as teaching tool in order to make a minimal application that uses a certain framework. templates in the KAppTemplate repository will always get forgotten (plus kapptemplate is not really necessary as they work in kdevelop as well) An ideal situation would be frameworks having templates in their own repos with templates of barebone apps using the main framework features. In order to do that, the cmake stuff needed in order to correctly install a template needs to be ported to a place avaiable to all frameworks REVIEW:126185 --- .../package/contents/images/pairs.svgz | Bin 0 -> 103064 bytes .../qml-plasmoid/package/contents/ui/main.qml | 28 +++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/images/pairs.svgz create mode 100644 tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/ui/main.qml (limited to 'tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents') diff --git a/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/images/pairs.svgz b/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/images/pairs.svgz new file mode 100644 index 00000000..4d1be5de Binary files /dev/null and b/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/images/pairs.svgz differ diff --git a/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/ui/main.qml b/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/ui/main.qml new file mode 100644 index 00000000..afa4758a --- /dev/null +++ b/tests/KDEPackageAppTemplatesTest/qml-plasmoid/package/contents/ui/main.qml @@ -0,0 +1,28 @@ +/*************************************************************************** + * Copyright (C) %{CURRENT_YEAR} by %{AUTHOR} <%{EMAIL}> * + * * + * Distributed under the OSI-approved BSD License (the "License"); + * see accompanying file COPYING-CMAKE-SCRIPTS for details. + * + * This software is distributed WITHOUT ANY WARRANTY; without even the + * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the License for more information. + ***************************************************************************/ + +import QtQuick 2.1 +import QtQuick.Layouts 1.1 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.components 2.0 as PlasmaComponents + +Item { + Plasmoid.fullRepresentation: ColumnLayout { + anchors.fill: parent + PlasmaCore.IconItem { + source: "kde" + } + PlasmaComponents.Label { + text: "This is Plasma!" + } + } +} -- cgit v1.2.1