From 7980cd0496005bf6abc504a3dbe34eee2c84c43a Mon Sep 17 00:00:00 2001 From: Giorgos Tsiapaliwkas Date: Thu, 16 Feb 2012 14:04:09 +0200 Subject: [PATCH] Add a tests folder --- .../tests/contents/code/klocaleqmltest.qml | 34 +++++++++++++++++++ .../locale/tests/metadata.desktop | 12 +++++++ 2 files changed, 46 insertions(+) create mode 100644 declarativeimports/locale/tests/contents/code/klocaleqmltest.qml create mode 100644 declarativeimports/locale/tests/metadata.desktop diff --git a/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml b/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml new file mode 100644 index 000000000..513ef87c3 --- /dev/null +++ b/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml @@ -0,0 +1,34 @@ +// -*- coding: iso-8859-1 -*- +/* + * Author: Giorgos Tsiapaliwkas + * Date: Wed Feb 15 2012, 18:28:32 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 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 Library 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 1.0 +import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets +import org.kde.plasma.core 0.1 as PlasmaCore +import org.kde.plasma.graphicslayouts 4.7 as GraphicsLayouts + +Item { + width: 200 + height: 300 + + Text { + text: i18n("Hello world") + } +} diff --git a/declarativeimports/locale/tests/metadata.desktop b/declarativeimports/locale/tests/metadata.desktop new file mode 100644 index 000000000..bebca09a6 --- /dev/null +++ b/declarativeimports/locale/tests/metadata.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=klocaleQMLtest +Type=Service +X-KDE-PluginInfo-Author=Giorgos Tsiapaliwkas +X-KDE-PluginInfo-Email=terietor@gmail.com +X-KDE-PluginInfo-License=GPL +X-KDE-PluginInfo-Name=klocaleqmltest +X-KDE-PluginInfo-Version=1 +X-KDE-ServiceTypes=Plasma/Applet +X-Plasma-API=declarativeappletscript +X-Plasma-DefaultSize=200,100 +X-Plasma-MainScript=code/klocaleqmltest.qml