diff --git a/examples/applets/CMakeLists.txt b/examples/applets/CMakeLists.txt index cd373ead7..46ef39973 100644 --- a/examples/applets/CMakeLists.txt +++ b/examples/applets/CMakeLists.txt @@ -1,4 +1,5 @@ +plasma_install_package(bugreport org.kde.example.bugreport) plasma_install_package(config org.kde.example.configuration) plasma_install_package(dataenginemodel org.kde.example.dataenginemodel) plasma_install_package(notes org.kde.example.notes) diff --git a/examples/applets/bugreport/contents/ui/main.qml b/examples/applets/bugreport/contents/ui/main.qml new file mode 100644 index 000000000..ece4a62e9 --- /dev/null +++ b/examples/applets/bugreport/contents/ui/main.qml @@ -0,0 +1,70 @@ +/* + * Copyright 2014 Sebastian Kügler + * + * 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 2.0 +import QtQuick.Layouts 1.1 + +import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.extras 2.0 as PlasmaExtras +//import org.kde.plasma.components 2.0 as PlasmaComponents + +Item { + Layout.minimumWidth: 200 + Layout.minimumHeight: 300 + + PlasmaCore.IconItem { + source: "kbugbuster" + width: units.iconSizes.large + height: width + anchors { + right: col.right + top: col.top + } +// opacity: 0.3 + } + + Column { + id: col + + spacing: units.largeSpacing /2 + anchors { + fill: parent + margins: units.largeSpacing + } + + PlasmaExtras.Title { + text: i18n("Reporting Bugs") + } + PlasmaExtras.Heading { + level: 3 + text: i18n("So you found something wrong in Plasma...") + } + PlasmaExtras.Paragraph { + text: i18n("You are running a development version of Plasma. This software is not fit for production use. We do, however encourage testing and reporting the results. A few easy steps to report a bug:
\ + \ +
If you would like to participate in development, or have a question, you can ask them on the plasma-devel@kde.org mailing list.\ + ") + } + } +} diff --git a/examples/applets/bugreport/metadata.desktop b/examples/applets/bugreport/metadata.desktop new file mode 100644 index 000000000..4bc5b8d9c --- /dev/null +++ b/examples/applets/bugreport/metadata.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Comment=Report a bug in Plasma +Encoding=UTF-8 +Keywords=plasma,bugzilla,bug,development,support +Name=Bug +Type=Service +Icon=kbugbuster + +X-KDE-PluginInfo-Author=Sebastian Kügler +X-KDE-PluginInfo-Category=Development +X-KDE-PluginInfo-Email=sebas@kde.org +X-KDE-PluginInfo-License=GPL +X-KDE-PluginInfo-Name=org.kde.example.bugreport +X-KDE-PluginInfo-Version= +X-KDE-PluginInfo-Website=http://bugs.kde.org +X-KDE-ServiceTypes=Plasma/Applet + +X-Plasma-API=declarativeappletscript +X-Plasma-MainScript=ui/main.qml