New bugreport Plasmoid
Add small applet which we can put on the desktop in the development releases, encouraging bugreporting and warning of unstable software.
This commit is contained in:
parent
8c65f60de5
commit
d49feee040
@ -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)
|
||||
|
70
examples/applets/bugreport/contents/ui/main.qml
Normal file
70
examples/applets/bugreport/contents/ui/main.qml
Normal file
@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2014 Sebastian Kügler <sebas@kde.org>
|
||||
*
|
||||
* 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: <br />\
|
||||
<ul>\
|
||||
<li>Check <a href=\"\">here if the bug already exists</li>\
|
||||
<li>Report it using the form <a href=\"\">here</li>\
|
||||
<li>Be ready to provide us feedback, so we can debug the problem</li>\
|
||||
</ul>\
|
||||
<br />If you would like to participate in development, or have a question, you can ask them on the plasma-devel@kde.org mailing list.\
|
||||
")
|
||||
}
|
||||
}
|
||||
}
|
19
examples/applets/bugreport/metadata.desktop
Normal file
19
examples/applets/bugreport/metadata.desktop
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user